summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add v1.22.0 changelog (#31060)v1.22.0Lunny Xiao2024-05-271-0/+166
|
* Prevent tab shifting, remove extra margin on fluid pages (#31090) (#31099)Giteabot2024-05-276-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31090 by @silverwind 1. Extend concept of https://github.com/go-gitea/gitea/pull/29831 to all tabular menus, there were only three left that weren't already `<overflow-menu>`. <img width="634" alt="Screenshot 2024-05-27 at 00 42 16" src="https://github.com/go-gitea/gitea/assets/115237/d9a7e219-d05e-40a1-9e93-777f9a8a90dd"> <img width="965" alt="Screenshot 2024-05-27 at 00 29 32" src="https://github.com/go-gitea/gitea/assets/115237/e6ed71b1-11fb-4a74-9adb-af4524286cff"> 2. Remove extra padding on `fluid padded` container like for example PR diff view. The page margin is already correctly sized via `.ui.container`, so this was just extraneous padding that looked ugly. Before: <img width="1351" alt="Screenshot 2024-05-27 at 00 45 11" src="https://github.com/go-gitea/gitea/assets/115237/4b45fd11-b1b2-4fbb-a618-26eb22be9472"> After: <img width="1344" alt="Screenshot 2024-05-27 at 00 45 22" src="https://github.com/go-gitea/gitea/assets/115237/d09593eb-6c7f-45e7-85b6-f0050047004b"> 3. Replace `gt-word-break` with `tw-break-anywhere` in issue-title, fixing overflow. Before: <img width="1333" alt="Screenshot 2024-05-27 at 00 50 14" src="https://github.com/go-gitea/gitea/assets/115237/64d15d04-b456-401e-a972-df636965f0eb"> After: <img width="1316" alt="Screenshot 2024-05-27 at 00 50 26" src="https://github.com/go-gitea/gitea/assets/115237/ed1ce830-1408-414b-8263-eeaf773f52c8"> Co-authored-by: silverwind <me@silverwind.io>
* Fix border radius on hovered secondary menu (#31089) (#31097)Giteabot2024-05-271-1/+4
| | | | | | | | | | | | Backport #31089 by @silverwind Presumably a regression from https://github.com/go-gitea/gitea/pull/30325, these menus were showing a border radius on hover, which is fixed with this change. <img width="154" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/eafdc1c5-3cf5-48d1-86c4-21c58f92cfaf"> Co-authored-by: silverwind <me@silverwind.io>
* Fix possible ui 500 if workflow's job is nil (#31092) (#31098)Giteabot2024-05-272-0/+9
| | | | | | | Backport #31092 by @lunny Fix #31087 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix `View File` button link if branch deleted on pull request files pages ↵Giteabot2024-05-261-1/+1
| | | | (#31063) (#31077)
* Change `--border-radius-circle` to `--border-radius-full` (#30936) (#31078)Giteabot2024-05-264-5/+5
|
* Make gitea webhooks openproject compatible (#28435) (#31081)Giteabot2024-05-268-23/+102
| | | | | Backport #28435 by Chief-Detektor Co-authored-by: André Rosenhammer <andre.rosenhammer@gmail.com>
* Support setting the `default` attribute of the issue template dropdown field ↵Giteabot2024-05-243-1/+118
| | | | | | | | | | | | | | (#31045) (#31059) Backport #31045 by @Zettat123 Fix #31044 According to [GitHub issue template documentation](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema#attributes-for-dropdown), the `default` attribute can be used to specify the preselected option for a dropdown field. Co-authored-by: Zettat123 <zettat123@gmail.com>
* Alpine 3.20 has been released (#31047) (#31057)Giteabot2024-05-232-4/+4
| | | | | Backport #31047 by @techknowlogick Co-authored-by: techknowlogick <techknowlogick@gitea.com>
* Fix wrong display of recently pushed notification (#25812) (#31043)yp053272024-05-2326-72/+508
| | | | | | | | | | | Backport #25812 ~~ps: removed some new codes in `tests/integration/pull_merge_test.go`~~ --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* align s3 files with docker naming (#31050) (#31052)Giteabot2024-05-222-2/+2
|
* Update Actions documentation missing feature (#31034) (#31048)Giteabot2024-05-222-0/+8
| | | | | | | | | | Backport #31034 by @lunny Fix https://github.com/go-gitea/gitea/issues/25897#issuecomment-2117145391 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: yp05327 <576951401@qq.com>
* Sync up deleted branches & action assets related cleanup documentation ↵Giteabot2024-05-222-1/+20
| | | | | | | | | | (#31022) (#31049) Backport #31022 by @kemzeb Syncs up docs associated to actions and deleted branch cleanup i.e. in custom/app.example.ini and the config cheat sheet. Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
* Fix automerge will not work because of some events haven't been triggered ↵Giteabot2024-05-227-63/+344
| | | | | | | | | | | | | | | | | | (#30780) (#31039) Backport #30780 by @lunny Replace #25741 Close #24445 Close #30658 Close #20646 ~Depends on #30805~ Since #25741 has been rewritten totally, to make the contribution easier, I will continue the work in this PR. Thanks @6543 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* use existing oauth grant for public client (#31015) (#31042)Giteabot2024-05-211-2/+17
| | | | | | | | | | | Backport #31015 by @denyskon Do not try to create a new authorization grant when one exists already, thus preventing a DB-related authorization issue. Fix https://github.com/go-gitea/gitea/pull/30790#issuecomment-2118812426 Co-authored-by: Denys Konovalov <kontakt@denyskon.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Don't include link of deleted branch when listing branches (#31028) (#31032)Giteabot2024-05-211-1/+1
| | | | | | | | | | | | | | | | Backport #31028 by @kemzeb From https://github.com/go-gitea/gitea/issues/31018#issuecomment-2119622680. This commit removes the link to a deleted branch name because it returns a 404 while it is in this deleted state. GitHub also throws a 404 when navigating to a branch link that was just deleted, but this deleted branch is removed from the branch list after a page refresh. Since with Gitea this deleted branch would be kept around for quite some time (well, until the "cleanup deleted branches" cron job begins), it makes sense to not have this as a link that users can navigate to. Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
* Refactor sha1 and time-limited code (#31023) (#31030)Giteabot2024-05-218-98/+122
| | | | | Backport #31023 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Return `access_denied` error when an OAuth2 request is denied (#30974) (#31029)Giteabot2024-05-203-2/+13
| | | | | | Backport #30974 by Zettat123 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Fix incorrect "blob excerpt" link when comparing files (#31013) (#31026)Giteabot2024-05-203-6/+47
| | | | | Backport #31013 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Avoid 500 panic error when uploading invalid maven package file (#31014) ↵Giteabot2024-05-204-2/+20
| | | | | | | (#31027) Backport #31014 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix project column title overflow (#31011) (#31025)Giteabot2024-05-203-22/+16
| | | | | Backport #31011 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix data-race during testing (#30999) (#31024)Giteabot2024-05-203-20/+36
| | | | | | | Backport #30999 by wxiaoguang Fix #30992 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix bug on avatar (#31008) (#31019)Giteabot2024-05-203-10/+24
| | | | | | | | Backport #31008 by @lunny Extract from #30995 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Fix "force private" logic (#31012) (#31021)Giteabot2024-05-2016-18/+19
| | | | | Backport #31012 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve reverse proxy documents and clarify the AppURL guessing behavior ↵Giteabot2024-05-195-61/+78
| | | | | | | | | | | | | | | (#31003) (#31020) Backport #31003 by wxiaoguang Fix #31002 1. Mention Make sure `Host` and `X-Fowarded-Proto` headers are correctly passed to Gitea 2. Clarify the basic requirements and move the "general configuration" to the top 3. Add a comment for the "container registry" 4. Use 1.21 behavior if the reverse proxy is not correctly configured Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Simplify mirror repository API logic (#30963) (#31009)Giteabot2024-05-183-11/+5
| | | | | | | Backport #30963 by wxiaoguang Fix #30921 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix JS error when editing a merged PR's title (#30990) (#31001)Giteabot2024-05-172-5/+6
| | | | | | | Backport #30990 by @wxiaoguang Regression of Fix issue/PR title edit (#30858) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Upgrade `tqdm` dependency (#30996) (#31000)Giteabot2024-05-171-4/+4
| | | | | | | | | Backport #30996 by @silverwind Result of `make update-py` Fixes: https://github.com/go-gitea/gitea/security/dependabot/65 Co-authored-by: silverwind <me@silverwind.io>
* template: `label` fix correct input id (#30987) (#30997)Giteabot2024-05-161-1/+1
| | | | | | | Just a small commit to fix a wrong label for id. Thanks and cheers! Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu> Co-authored-by: Frank Villaro-Dixon <frank@vi-di.fr>
* Put web editor into a segment (#30966) (#30993)Giteabot2024-05-161-19/+23
| | | | | Backport #30966 by silverwind Co-authored-by: silverwind <me@silverwind.io>
* Check if the release is converted from the tag when updating the release ↵Giteabot2024-05-151-2/+8
| | | | | | | | (#30984) (#30986) We should call `notify_service.NewRelease` when a release is created from an existing tag. Co-authored-by: Zettat123 <zettat123@gmail.com>
* Remove unnecessary double quotes on language file (#30977) (#30979)Giteabot2024-05-151-1/+1
| | | | | | | | Backport #30977 by @lunny The double quotes and the prefix/suffix space are unnecessary. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Always load or generate oauth2 jwt secret (#30942) (#30978)Giteabot2024-05-143-12/+44
| | | | | | | Backport #30942 by @wxiaoguang Fix #30923 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Filter out duplicate action(activity) items for a repository (#30957) (#30976)Giteabot2024-05-142-1/+31
| | | | | Backport #30957 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Protected tag is no internal server error (#30962) (#30970)Giteabot2024-05-147-29/+83
| | | | | | | | | | Backport #30962 by @KN4CK3R Fixes #30959 Adds an API test for protected tags. Fix existing tag in combination with fixtures. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Restyle release list, fix branch dropdown (#30837) (#30968)Giteabot2024-05-134-44/+67
| | | | | | | | | | | | | | | | | | | Backport #30837 by @silverwind Fixes https://github.com/go-gitea/gitea/issues/30821 and restyles the release list. Desktop: <img width="1199" alt="Screenshot 2024-05-02 at 20 46 10" src="https://github.com/go-gitea/gitea/assets/115237/bee92423-d4a9-4b26-8301-3a1e09eef4cd"> Mobile: <img width="443" alt="Screenshot 2024-05-02 at 20 46 21" src="https://github.com/go-gitea/gitea/assets/115237/42ecbae5-bdb6-4b16-a0ee-9c64daede68d"> Co-authored-by: silverwind <me@silverwind.io>
* fix: change npm scope registry (#30964) (#30965)Giteabot2024-05-132-4/+4
| | | | | | | | Backport #30964 by @llxlr https://docs.npmjs.com/cli/v10/using-npm/scope#associating-a-scope-with-a-registry Co-authored-by: james yang <yanghongday369@gmail.com>
* Support using label names when changing issue labels (#30943) (#30958)Giteabot2024-05-134-10/+84
| | | | | | | | | | | | | | | | Backport #30943 by @Zettat123 Resolve #30917 Make the APIs for adding labels and replacing labels support both label IDs and label names so the [`actions/labeler`](https://github.com/actions/labeler) action can work in Gitea. <img width="600px" src="https://github.com/go-gitea/gitea/assets/15528715/7835c771-f637-4c57-9ce5-e4fbf56fa0d3" /> Co-authored-by: Zettat123 <zettat123@gmail.com>
* Fix file path width in repo non-homepage view (#30951) (#30952)Giteabot2024-05-122-1/+5
| | | | | | | | | | Backport #30951 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30940 <img width="1310" alt="Screenshot 2024-05-11 at 20 48 41" src="https://github.com/go-gitea/gitea/assets/115237/f163dfd4-1299-421f-a99e-cd0c793e0e3d"> Co-authored-by: silverwind <me@silverwind.io>
* Remove If Exist check on migration for mssql because that syntax required ↵Giteabot2024-05-123-10/+12
| | | | | | | | | | | | | | SQL server 2016 (#30894) (#30946) Backport #30894 by @lunny Fix #30872 We will assume the database is consistent before executing the migration. So the indexes should exist. Removing `IF EXIST` then is safe enough. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Move reverproxyauth before session so the header will not be ignored even if ↵Giteabot2024-05-121-6/+6
| | | | | | | | | | user has login (#27821) (#30948) Backport #27821 by @lunny When a user logout and then login another user, the reverseproxy auth should be checked before session otherwise the old user is still login. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix some UI regressions for commit list (#30920) (#30937)Giteabot2024-05-103-10/+11
| | | | | | | | Backport #30920 by wxiaoguang Close #30919 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Check if reverse proxy is correctly configured (#30890) (#30935)Giteabot2024-05-1011-19/+93
| | | | | | | | | Backport #30890 by wxiaoguang Follow #27011 Follow #30885 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Fix incorrect default branch when adopt a repository (#30912) (#30928)yp053272024-05-101-23/+18
| | | | | Backport #30912 ps: removed useless `u *user_model.User` for `adoptRepository`
* Remove deprecated stuff for runners (#30930) (#30931)Giteabot2024-05-102-19/+0
| | | | | | | | | | | | Backport #30930 by @wolfogre It's time (maybe somewhat late) to remove some deprecated stuff for the runner. - `x-runner-version`: runners needn't to report version in every request, they will call `Declare`. - `AgentLabels`: runners will report them as `Labels`. Co-authored-by: Jason Song <i@wolfogre.com>
* Update issue indexer after merging a PR (#30715) (#30903)Giteabot2024-05-092-0/+77
| | | | | | | Backport #30715 by @Zettat123 Fix #30684 Co-authored-by: Zettat123 <zettat123@gmail.com>
* Add missing menu active item background back (#30897) (#30907)Giteabot2024-05-081-0/+1
| | | | | Backport #30897 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix incorrect issue form (#30881) (#30904)Giteabot2024-05-082-21/+12
| | | | | Backport #30881 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix misspelling of mergable (#30896) (#30905)Giteabot2024-05-084-10/+10
| | | | | | | | Backport #30896 by @yp05327 https://github.com/go-gitea/gitea/pull/25812#issuecomment-2099833692 Follow #30573 Co-authored-by: yp05327 <576951401@qq.com>
* Fix various problems around projects board view (#30696) (#30902)Giteabot2024-05-0816-167/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #30696 by @lunny # The problem The previous implementation will start multiple POST requests from the frontend when moving a column and another bug is moving the default column will never be remembered in fact. # What's changed - [x] This PR will allow the default column to move to a non-first position - [x] And it also uses one request instead of multiple requests when moving the columns - [x] Use a star instead of a pin as the icon for setting the default column action - [x] Inserted new column will be append to the end - [x] Fix #30701 the newly added issue will be append to the end of the default column - [x] Fix when deleting a column, all issues in it will be displayed from UI but database records exist. - [x] Add a limitation for columns in a project to 20. So the sorting will not be overflow because it's int8. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>