24a51059d7
Fix possible nil description of pull request when migrating from CodeCommit ( #34541 )
...
Fix #34320
2025-05-27 11:25:34 -07:00
9f10885b21
Refactor commit reader ( #34542 )
2025-05-27 16:49:05 +00:00
688da55f54
Split GetLatestCommitStatus as two functions ( #34535 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Extract from #34531 . This will reduce unnecessary count operation in
databases.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-26 19:00:22 +00:00
ab9691291d
Don't display error log when .git-blame-ignore-revs doesn't exist ( #34457 )
...
Fix #34454
2025-05-26 17:09:14 +00:00
50d9565088
Add sort option recentclose for issues and pulls ( #34525 )
...
closes #34171
Adds a new sort option `recentclose` for issues and pull requests which
will return items in a descending order of when they were closed
2025-05-26 16:37:38 +00:00
11ee7ff3bf
fix: return 201 Created for CreateVariable API responses ( #34517 )
...
- Change CreateVariable API response status from 204 No Content to 201
Created
- Update related integration tests to expect 201 Created instead of 204
No Content
## ⚠️ BREAKING ⚠️
Change the response status code of the Create Variable API under both
Org and Repo levels to `201` instead of 204.
API SDK: https://gitea.com/gitea/go-sdk/pulls/713
---------
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Signed-off-by: appleboy <appleboy.tw@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
2025-05-26 12:12:49 -04:00
9b295e984a
Actions list ( #34530 )
...
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
Closes #34524
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-26 20:02:47 +08:00
9d4ebc1f2c
[skip ci] Updated translations via Crowdin
2025-05-26 00:37:55 +00:00
8365365c9c
Run integration tests against postgres 14 ( #34514 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
postgres 12 is end of life since 6 months. 13 and above are still
supported but I think it's overall better if we test a more recent
version of postgres because that's what new users will be running on.
Ref: https://endoflife.date/postgresql
2025-05-23 04:40:21 +00:00
4dd833ca9e
[skip ci] Updated translations via Crowdin
2025-05-23 00:36:43 +00:00
b595f81b79
Performance optimization for tags synchronization ( #34355 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
The tags synchronization is very slow for a non-mirror repository with
many tags especially forking. This PR make all repositories' tags
synchronization use the same function and remove the low performance
synchronization function. The commit count of tag now will not be stored
into database when syncing. Since the commits count will always be read
from cache or git data, the `NumCommits` in the release table will be
updated for the first read from git data.
2025-05-22 13:54:42 -07:00
06ccda06c4
Fix possible panic ( #34508 )
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
2025-05-22 12:59:42 +00:00
0d1d57c5bf
[skip ci] Updated translations via Crowdin
2025-05-22 00:36:11 +00:00
14bb8f7845
[skip ci] Updated translations via Crowdin
2025-05-21 00:37:21 +00:00
73f640fc15
Fix ephemeral runner deletion ( #34447 )
...
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
* repository deletion, delete ephemeral runners with active tasks as
well skips regular cleanup
* user deletion, delete ephemeral runners with active tasks as well
skips regular cleanup
* delete ephemeral runners once status changes to done
* You no longer see used ephemeral runners after the task is done
* if you see one the cron job takes care of it
2025-05-20 15:42:31 +00:00
28dec9a27d
ui: add a default tab on repo header when migrating ( #34503 )
...
Signed-off-by: a1012112796 <1012112796@qq.com >
2025-05-20 11:14:18 -04:00
0534eddd16
Use run-name and evaluate workflow variables ( #34301 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
3a1320c70d/models/actions/utils.go (L86)
and
3a1320c70d/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](65c232c4a5/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 "
/>
2025-05-20 02:24:10 +00:00
d06eb8d801
feat(api): add date range filtering to commit retrieval endpoints ( #34497 )
...
- 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 >
2025-05-19 18:57:58 -07:00
9cfcc079c7
Export repo's manual merge settings ( #34502 )
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-05-19 13:08:00 -04:00
ec10c6ba5a
[skip ci] Updated translations via Crowdin
2025-05-19 00:38:52 +00:00
d89eed998f
Fix edithook api can not update package, status and workflow_job events ( #34495 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
* the origin of this problem is duplicated code
2025-05-18 09:43:56 -07:00
972381097c
Fix url validation in webhook add/edit API ( #34492 )
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
2025-05-17 20:05:55 +00:00
b6c0667474
Add R-HNF to the TRANSLATORS file ( #34494 )
...
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
319d03fbc0
I also referred to the following PRs:
* #8451
* #8292
2025-05-17 09:58:27 -07:00
e92c4f1808
Add missing setting load in dump-repo command ( #34479 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Fix #34465
2025-05-16 14:35:20 +00:00
6fbf0e6738
nix flake update ( #34476 )
2025-05-16 14:09:45 +00:00
59df03b554
Fix get / delete runner to use consistent http 404 and 500 status ( #34480 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
* previously deleting an already deleted runner returned http 500
* previously any database error for the get endpoint was http 404 and never 500
2025-05-16 06:44:29 +00:00
7b518bc6c7
Change "rejected" to "changes requested" in 3rd party PR review notification ( #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

## Considered Problems
This might break some automation for users who rely on string matching.
2025-05-15 23:56:26 -04:00
c24f4b3d29
Add migrations tests ( #34456 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #34455
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-15 16:28:31 +00:00
bf338bb9e2
Fix project board view ( #34470 )
...
Fix #34469
2025-05-15 23:25:46 +08:00
319d03fbc0
[skip ci] Updated translations via Crowdin
2025-05-15 00:35:31 +00:00
dd500ce559
Fix Workflow run Not Found page ( #34459 )
...
Related:
https://github.com/go-gitea/gitea/pull/34337#issuecomment-2863593738
https://github.com/go-gitea/gitea/pull/34337#discussion_r2086332493
2025-05-14 14:40:10 -07:00
b6bf128f1e
[skip ci] Updated translations via Crowdin
2025-05-14 00:36:37 +00:00
1e2f3514b9
Add endpoint deleting workflow run ( #34337 )
...
Add endpoint deleting workflow run
Resolves #26219
/claim #26219
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-13 19:18:13 +00:00
a0595add72
Fix remove org user failure on mssql ( #34449 )
...
* 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 >
2025-05-14 02:33:56 +08:00
5cb4cbf044
Fix repo broken check ( #34444 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Fix #34424
2025-05-13 08:18:45 +00:00
b5fd3e7210
Fix comment textarea scroll issue in Firefox ( #34438 )
...
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 >
2025-05-13 08:52:25 +02:00
4011e2245b
Fix releases sidebar navigation link ( #34436 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Resolves https://github.com/go-gitea/gitea/issues/34435
2025-05-12 16:10:40 -04:00
355e9a9d54
Add a webhook push test for dev branch ( #34421 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-05-12 01:06:34 +00:00
0902d42fc7
[skip ci] Updated translations via Crowdin
2025-05-12 00:38:34 +00:00
34281bc198
Fix bug webhook milestone is not right. ( #34419 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #34400
---------
Co-authored-by: silverwind <me@silverwind.io >
2025-05-11 23:56:24 +00:00
780e92ea99
Only git operations should update last changed
of a repository ( #34388 )
...
Try to fix #32046
2025-05-11 19:18:46 +00:00
b07e03956a
When updating comment, if the content is the same, just return and not update the databse ( #34422 )
...
Fix #34318
2025-05-11 18:53:23 +00:00
4a98ab0540
Remove legacy template helper functions ( #34426 )
...
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
These functions have been marked as `panicIfDevOrTesting` since 1.23
(#32422 )
2025-05-11 01:42:21 -04:00
9b8609e017
Fix GetUsersByEmails ( #34423 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #34418 , fix #34353
2025-05-10 11:47:58 -07:00
0f63a5ef48
[skip ci] Updated translations via Crowdin
2025-05-10 00:34:13 +00:00
ad271444e9
Fix a bug when uploading file via lfs ssh command ( #34408 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 16:17:08 +00:00
8b16ab719c
Merge and tweak markup editor expander CSS ( #34409 )
...
- 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 >
2025-05-09 17:14:21 +02:00
2ecd73d2e5
Bump @github/relative-time-element
to v4.4.8 ( #34413 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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 >
2025-05-09 14:11:13 +00:00
179068fddb
Refactor commit message rendering and fix bugs ( #34412 )
...
Fix #34398 , fix #33308
Remove all `repo.ComposeCommentMetas` from templates,
only use `repo` to render commit message.
2025-05-09 20:42:35 +08:00
44aadc37c9
[skip ci] Updated translations via Crowdin
2025-05-09 00:36:27 +00:00