* Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <[email protected]> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <[email protected]> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <[email protected]> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <[email protected]> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <[email protected]> * Simplified create and find functions for review Signed-off-by: Jonas Franz <[email protected]> * Moved "Pending" to first position Signed-off-by: Jonas Franz <[email protected]> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <[email protected]> * Preview for listing comments Signed-off-by: Jonas Franz <[email protected]> * Move new comment form to its own file Signed-off-by: Jonas Franz <[email protected]> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <[email protected]> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <[email protected]> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <[email protected]> * Add unit tests for Review Signed-off-by: Jonas Franz <[email protected]> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <[email protected]> * gofmt Signed-off-by: Jonas Franz <[email protected]> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <[email protected]> * Add support for invalidating comments Signed-off-by: Jonas Franz <[email protected]> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <[email protected]> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <[email protected]> * Rebuild css Signed-off-by: Jonas Franz <[email protected]> * gofmt Signed-off-by: Jonas Franz <[email protected]> * Improve translations Signed-off-by: Jonas Franz <[email protected]> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <[email protected]> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <[email protected]> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <[email protected]> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <[email protected]> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <[email protected]> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <[email protected]> * Update code.gitea.io/git Signed-off-by: Jonas Franz <[email protected]> * Add support for new webhooks Signed-off-by: Jonas Franz <[email protected]> * Update comparison Signed-off-by: Jonas Franz <[email protected]> * Resolve conflicts Signed-off-by: Jonas Franz <[email protected]> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <[email protected]> * Prepare solving conflicts Signed-off-by: Jonas Franz <[email protected]> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <[email protected]> * Add missing vendor files Signed-off-by: Jonas Franz <[email protected]> * Check if reviewer is nil Signed-off-by: Jonas Franz <[email protected]> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <[email protected]> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <[email protected]> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <[email protected]> * Add link to comment in code Signed-off-by: Jonas Franz <[email protected]> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <[email protected]> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <[email protected]> * gofmt Signed-off-by: Jonas Franz <[email protected]> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <[email protected]> * Add v70 Signed-off-by: Jonas Franz <[email protected]> * Update generated stylesheet Signed-off-by: Jonas Franz <[email protected]> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <[email protected]> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <[email protected]> * fmt Signed-off-by: Jonas Franz <[email protected]> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <[email protected]> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <[email protected]> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <[email protected]> * Fix data-tab issues Signed-off-by: Jonas Franz <[email protected]> * Remove unnecessary change Signed-off-by: Jonas Franz <[email protected]> * refactored checkForInvalidation Signed-off-by: Jonas Franz <[email protected]> * Append comments instead of setting Signed-off-by: Jonas Franz <[email protected]> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <[email protected]> * Update migration Signed-off-by: Jonas Franz <[email protected]> * Regenerated CSS Signed-off-by: Jonas Franz <[email protected]> * Add copyright Signed-off-by: Jonas Franz <[email protected]> * Update index.css Signed-off-by: Jonas Franz <[email protected]>
Gitea: Docs
Hosting
This page is hosted on our infrastructure within Docker containers, it gets
automatically updated on every push to the master branch.
If you want to host this page on your own you can take our docker image gitea/docs.
Install
This pages uses the Hugo static site generator. If you are planning to contribute you'll want to download and install Hugo on your local machine.
The installation of Hugo is out of the scope of this document, so please take the official install instructions to get Hugo up and running.
Development
To generate the website and serve it on localhost:1313
just execute this command and stop it with Ctrl+C:
make server
When you are done with your changes just create a pull request, after merging the pull request the website will be updated automatically.
Contributing
Fork -> Patch -> Push -> Pull Request
Authors
License
This project is under the Apache-2.0 License. See the LICENSE file for the full license text.
Copyright
Copyright (c) 2016 The Gitea Authors <https://gitea.io>