* Check for either escaped or unescaped wiki filenames
+ Gitea currently saves wiki pages with escaped filenames.
+ Wikis mirrored from other places like Github use unescaped filenames.
+ We need to be checking for filenames in either format to increase compatibility.
* Better logic for escaped and unescaped wiki filenames
Co-Authored-By: null <[email protected]>
* Update golangci to v1.20
Signed-off-by: kolaente <[email protected]>
* Use the timeout flag instead of deadline, move it to config
Signed-off-by: kolaente <[email protected]>
* fix issues/pr list broken when there are many repositories
* remove unused codes
* fix counting error on issues/prs
* keep the old logic
* fix panic
* fix tests
Also reworked the header to remove the filename (which is redundant with
the file path above) and made the header a flexbox with a monospace
font.
Fixes: https://github.com/go-gitea/gitea/issues/8170
* fix milestone num_issues
* update missing completeness
* only update milestone closed number when closed issue is assigned a new milestone or clear milestone
* fix tests
* fix update milestone num
* fix completeness calculate
* make completeness calucation more clear
When using unix socket as listener (`HTTP_ADDR = /run/gitea/gitea.socket`) then it's required to have the folder `/run/gitea` with appropriate owner/group. Manual creation leads to vanishing after reboot. This directive enables Systemd to handle this.
* Resolve error when comparing images
Signed-off-by: Mario Lubenka <[email protected]>
* Check blob existence instead of git-ls when checking if file exists
Signed-off-by: Mario Lubenka <[email protected]>
* Show file metadata also when a file was newly added
Signed-off-by: Mario Lubenka <[email protected]>
* Fixes error in commit view
Signed-off-by: Mario Lubenka <[email protected]>
* Excludes assigning path and image infos for compare routers to service package
Signed-off-by: Mario Lubenka <[email protected]>
* Removes nil default and fixes import order
Signed-off-by: Mario Lubenka <[email protected]>
* Adds missing comments
Signed-off-by: Mario Lubenka <[email protected]>
* Moves methods for assigning compare data to context into repo router package
Signed-off-by: Mario Lubenka <[email protected]>
* Show image compare for deleted images as well. Simplify check if image should be displayed
Signed-off-by: Mario Lubenka <[email protected]>
fixes#8299, a regression from 867f46f.
unlike it's name suggests, the .markdown class is needed for most markup types.
a future refactor should rename this class to something more generic
* Add API for Repo Advanced Settings of wiki and issue tracker
Signed-off-by: David Svantesson <[email protected]>
* Add some integration tests for tracker and wiki settings through API
* Should return StatusUnprocessableEntity in case of invalid API values.
* Add tests for invalid URLs for external tracker and wiki.
* Do not set inital values if they are default of type
* Make issue tracker and wiki units separate structures in Repository API structure.
Signed-off-by: David Svantesson <[email protected]>
* Fix comment of structures
Signed-off-by: David Svantesson <[email protected]>
* Rewrite API to use struct for setting tracker and wiki settings.
* LetOnlyContributorsTrackTime -> AllowOnlyContributorsToTrackTime
* [arc-green] white on hover for active menu items
Actually, hovered active menu elements are in an unreadable black text colour.
This should be changed to white.
* [arc-green] white on hover for active menu items
Actually, hovered active menu elements are in an unreadable black text colour.
This should be changed to white.
Now editing less files and commiting with `make css`.