aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use run-name and evaluate workflow variables (#34301)badhezi2025-05-207-33/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses https://github.com/go-gitea/gitea/issues/34247 depends on https://gitea.com/gitea/act/pulls/137 I couldn't find any previous implementation for `run-name` support on workflows so I created one. Key points: All dispatched workflows, scheduled workflows and detected workflows (from different hooks) will use and evaluate `run-name` if exists, with the corresponding gitea context and variables. This will be used as the Action run title and replace the default commit message being used today. Had to change act package jobparser (see link above) and create two helpers https://github.com/go-gitea/gitea/blob/3a1320c70df82ae88e286612c1646cffb8e2c343/models/actions/utils.go#L86 and https://github.com/go-gitea/gitea/blob/3a1320c70df82ae88e286612c1646cffb8e2c343/services/actions/context.go#L169 to pass the correct types to [GenerateGiteaContext](https://github.com/go-gitea/gitea/pull/34301/files#diff-9c9c27cb61a33e55ad33dc2c2e6a3521957a3e5cc50ddf652fdcd1def87b044dR86) and [WithGitContext](https://gitea.com/gitea/act/src/commit/65c232c4a5a40e59e257ab5d956b32585f0405d7/pkg/jobparser/jobparser.go#L84) respectively. <img width="1336" alt="Screenshot 2025-04-28 at 17 13 01" src="https://github.com/user-attachments/assets/73cb03d0-23a0-4858-a466-bbf0748cea98" />
* feat(api): add date range filtering to commit retrieval endpoints (#34497)Bo-Yi Wu2025-05-198-10/+76
| | | | | | | | | | | | | | | - Add support for filtering commits by date range via new "since" and "until" parameters - Update API endpoints and command logic to handle the new parameters for fetching commits within given dates - Extend API documentation and Swagger specs to describe the new "since" and "until" query parameters - Refactor related function signatures and implementations to accept and pass "since" and "until" values --------- Signed-off-by: appleboy <appleboy.tw@gmail.com> Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Export repo's manual merge settings (#34502)Adam Majer2025-05-193-0/+16
|
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-191-0/+3
|
* Fix edithook api can not update package, status and workflow_job events (#34495)ChristopherHX2025-05-181-55/+37
| | | * the origin of this problem is duplicated code
* Fix url validation in webhook add/edit API (#34492)Lunny Xiao2025-05-173-0/+112
|
* Add R-HNF to the TRANSLATORS file (#34494)Ryo Hanafusa2025-05-171-0/+1
| | | | | | | | | | | | I would like to be added to the TRANSLATORS file. Here are my related activities: * https://crowdin.com/profile/R-HNF/activity * commit: [skip ci] Updated translations via Crowdin 319d03fbc049de34a6fa0bc3019107ec5b724ff2 I also referred to the following PRs: * #8451 * #8292
* Add missing setting load in dump-repo command (#34479)Lunny Xiao2025-05-161-0/+5
| | | Fix #34465
* nix flake update (#34476)techknowlogick2025-05-161-3/+3
|
* Fix get / delete runner to use consistent http 404 and 500 status (#34480)ChristopherHX2025-05-162-18/+35
| | | | * previously deleting an already deleted runner returned http 500 * previously any database error for the get endpoint was http 404 and never 500
* Change "rejected" to "changes requested" in 3rd party PR review notification ↵Sebastian Weigand2025-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#34481) This PR changes 3rd party notifications wording on a PR review that requests changes and can be considered a follow up for #5858 to also fix #5857 in 3rd party notifications. The difference in the actual notification would be the following: ```diff - Pull request review rejected + Pull request review changes requested ``` While this is a simple string change at first look, it has a deeper UX meaning. # Motivation We could observe that some developers are hesitant to press the "Request changes" button since their peers first see that their changes were rejected, thus a more appropriate wording that also falls in line with the meaning and UI would be beneficial. ## Meaning Pressing the `Request changes` button in a PR review means that as a reviewer you are willing to merge the general change in a PR if changes requested review comments are implemented. Rejecting a PR on the other hand would be equivalent with closing it since that change isn't welcome at all (e.g. out of scope feature). ## Sync with UI The UI button says `request changes` and the other options ![image](https://github.com/user-attachments/assets/3766cc89-40d7-4c5e-9ff7-a0e1f6991ea6) ## Considered Problems This might break some automation for users who rely on string matching.
* Add migrations tests (#34456)Lunny Xiao2025-05-154-2/+99
| | | | | Fix #34455 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix project board view (#34470)wxiaoguang2025-05-151-17/+9
| | | Fix #34469
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-153-0/+18
|
* Fix Workflow run Not Found page (#34459)NorthRealm2025-05-141-4/+4
| | | | | Related: https://github.com/go-gitea/gitea/pull/34337#issuecomment-2863593738 https://github.com/go-gitea/gitea/pull/34337#discussion_r2086332493
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-141-0/+4
|
* Add endpoint deleting workflow run (#34337)NorthRealm2025-05-1322-43/+691
| | | | | | | | | | | Add endpoint deleting workflow run Resolves #26219 /claim #26219 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix remove org user failure on mssql (#34449)ChristopherHX2025-05-145-57/+42
| | | | | | | | | | | * mssql does not support fetching 0 repositories * remove paging by NumRepos that might be 0 * extend admin api test to purge user 2 Fixes #34448 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix repo broken check (#34444)wxiaoguang2025-05-133-21/+34
| | | Fix #34424
* Fix comment textarea scroll issue in Firefox (#34438)silverwind2025-05-131-0/+10
| | | | | | | | | | | | | | | | | | In the comment editor, there is a bug in Firefox where the scroll position unexpectedly moves up, which is annoying. This is not reproducible in Chrome and Safari. To reproduce here are some steps: - Go into an editable issue - Scroll page to bottom - Focus the textarea and press Return many times, causing the textarea to get a scrollbar - Scroll page to bottom again - Press Return once more - Page should not scroll up. This fixes the bug by adding a temporary margin, and I verified it works in all browsers. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix releases sidebar navigation link (#34436)badhezi2025-05-121-1/+1
| | | Resolves https://github.com/go-gitea/gitea/issues/34435
* Add a webhook push test for dev branch (#34421)Lunny Xiao2025-05-121-3/+47
|
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-121-1/+11
|
* Fix bug webhook milestone is not right. (#34419)Lunny Xiao2025-05-115-0/+105
| | | | | | | Fix #34400 --------- Co-authored-by: silverwind <me@silverwind.io>
* Only git operations should update `last changed` of a repository (#34388)Lunny Xiao2025-05-1119-33/+28
| | | Try to fix #32046
* When updating comment, if the content is the same, just return and not ↵Lunny Xiao2025-05-113-31/+89
| | | | | update the databse (#34422) Fix #34318
* Remove legacy template helper functions (#34426)wxiaoguang2025-05-114-108/+2
| | | | These functions have been marked as `panicIfDevOrTesting` since 1.23 (#32422)
* Fix GetUsersByEmails (#34423)wxiaoguang2025-05-103-35/+29
| | | Fix #34418, fix #34353
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-101-0/+4
|
* Fix a bug when uploading file via lfs ssh command (#34408)Lunny Xiao2025-05-097-76/+149
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Merge and tweak markup editor expander CSS (#34409)silverwind2025-05-095-97/+98
| | | | | | | | | | | | | | | | | | | | | | | - Merge the CSS for the two expanders (text-expander-element and tribute.js) into one file - Fix overflow issues - Remove min-width - Various other tweaks like borders, colors, padding, gaps. text-expander: <img width="645" alt="Screenshot 2025-05-09 at 02 21 24" src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039" /> tribute: <img width="624" alt="Screenshot 2025-05-09 at 02 21 37" src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d" /> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Bump `@github/relative-time-element` to v4.4.8 (#34413)Yarden Shoham2025-05-092-5/+5
| | | | | | | | Tested, it works as before. Changelog: https://github.com/github/relative-time-element/releases/tag/v4.4.8 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Refactor commit message rendering and fix bugs (#34412)wxiaoguang2025-05-0917-107/+102
| | | | | | Fix #34398, fix #33308 Remove all `repo.ComposeCommentMetas` from templates, only use `repo` to render commit message.
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-0928-42/+115
|
* Fix autofocus behavior (#34397)wxiaoguang2025-05-0811-49/+45
| | | | | | | | | | | | | | | | The "autofocus" was abused or misbehaved: 1. When users visit a page but they are not going to change a field, then the field shouldn't get "autofocus" * the "auth" / "user" page: in most cases, users do not want to change the names * see also the GitHub's "settings" page behavior. 2. There shouldn't be duplicate "autofocus" inputs in most cases, only the first one focuses 3. When a panel is shown, the "autofocus" should get focus * "add ssh key" panel This PR fixes all these problems and by the way remove duplicate "isElemHidden" function.
* Fix incorrect divergence cache after switching default branch (#34370)GWDx2025-05-083-3/+105
| | | | | | | | | | Issue: After switching the default branch, other branches are still compared against the old default branch due to outdated divergence cache. Change: Clear the divergence cache in SetRepoDefaultBranch to ensure correct comparisons against the new default branch. Fixes #34369
* Add a button editing action secret (#34348)NorthRealm2025-05-085-14/+62
| | | | | | | | Add a button editing action secret Closes #34190 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix LFS file not stored in LFS when uploaded/edited via API or web UI (#34367)bytedream2025-05-083-2/+24
| | | | | | | | Files that should be stored in LFS and are uploaded/edited from the API or web UI aren't stored in LFS. This may be a regression from #34154. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-082-0/+3
|
* Fix "The sidebar of the repository file list does not have a fixed height ↵Kerwin Bryant2025-05-072-1/+6
| | | | | | | | | | #34298" (#34321) There is a known issue where scrolling to the bottom of the page is affected by unknown elements in the footer area: https://github.com/go-gitea/gitea/blob/24145f811069295b9727f25469f1dd3a7c2c5dd7/templates/base/footer.tmpl#L11-L18 ![after](https://github.com/user-attachments/assets/4cdbce32-d22e-4907-a78b-c8e301017fac)
* feat: add label 'state' to metric 'gitea_users' (#34326)Tobias Balle-Petersen2025-05-073-4/+30
| | | | | | | | | | | | | | | | | | This PR adds the label _state_ to the metric _gitea_users_. With the change, _gitea_users_ would be reported like this: ``` ... # HELP gitea_users Number of Users # TYPE gitea_users gauge gitea_users{state="active"} 20 gitea_users{state="inactive"} 10 ... ``` The metrics above would be from a Gitea instance with 30 user accounts. 20 of the accounts are active and 10 of the accounts are not active. Resolve #34325
* Update JS and PY dependencies (#34391)silverwind2025-05-076-809/+1050
| | | Result of `make update-js update-py svg`. Quick test of the UI worked.
* Upgrade go-github v61 -> v71 (#34385)Lunny Xiao2025-05-066-23/+33
| | | | | There will be a possible bug when migrating from Github https://github.com/google/go-github/issues/3229 This PR upgrades go-github from v61 to v71 to resolve that problem.
* Bump `@github/relative-time-element` to v4.4.7 (#34384)Yarden Shoham2025-05-062-14/+6
| | | | | | | Tested, it works as before. Changelog: https://github.com/github/relative-time-element/releases/tag/4.4.7 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* gitignore: Visual Studio settings folder (#34375)65432025-05-061-0/+3
|
* Grey out expired artifact on Artifacts list (#34314)NorthRealm2025-05-055-12/+32
| | | | | | | | | | | Grey out expired artifact on Artifacts list. ![1](https://github.com/user-attachments/assets/79c00e39-29f5-4264-b7b2-7ed638ab71c1) ![2](https://github.com/user-attachments/assets/686b745f-d6d7-4921-8e1b-3472ac8b6c17) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix only text/* being viewable in web UI (#34374)bytedream2025-05-061-1/+1
| | | | Regression from #34356, files like SVGs should be editable too (https://github.com/go-gitea/gitea/pull/34356#discussion_r2072766240).
* add maintainer tobiasbp (#34372)Tobias Balle-Petersen2025-05-051-0/+1
| | | | | | | This PR adds me as a _maintainer_ as suggested by @techknowlogick. A couple of my recent PRs: * https://github.com/go-gitea/gitea/pull/34324 * https://github.com/go-gitea/gitea/pull/34323
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-0527-27/+0
|
* Use lfs label for lfs file rather than a long description (#34363)Lunny Xiao2025-05-054-6/+5
| | | | | | | | | | | Before ![image](https://github.com/user-attachments/assets/ed6c9221-5a6a-4717-8178-e5528fd180bf) After ![image](https://github.com/user-attachments/assets/baa94350-ead4-46bf-b4b7-1bfd3aa5dcac)