aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump minimum go version to 1.24.4 (#34699)silverwind2025-06-121-1/+1
| | | Fixes 3 open govulncheck issues.
* Update JS deps (#34701)silverwind2025-06-122-421/+606
| | | | Result of `make update-js`. Fixes https://github.com/go-gitea/gitea/security/dependabot/114.
* Fix markdown wrap (#34697)wxiaoguang2025-06-122-1/+2
| | | Fix #34696
* [skip ci] Updated translations via CrowdinGiteaBot2025-06-122-164/+164
|
* frontport changelog (#34689)Lunny Xiao2025-06-111-0/+423
|
* Improve instance wide ssh commit signing (#34341)ChristopherHX2025-06-1122-122/+467
| | | | | | | | | | | | | | | | | * Signed SSH commits can look in the UI like on GitHub, just like gpg keys today in Gitea * SSH format can be added in gitea config * SSH Signing worked before with DEFAULT_TRUST_MODEL=committer `TRUSTED_SSH_KEYS` can be a list of additional ssh public key contents to trust for every user of this instance Closes #34329 Related #31392 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix pull requests API convert panic when head repository is deleted. (#34685)Lunny Xiao2025-06-102-11/+18
| | | Fix #34682
* [skip ci] Updated translations via CrowdinGiteaBot2025-06-112-499/+497
|
* Hide href attribute of a tag if there is no target_url (#34556)Lunny Xiao2025-06-101-1/+1
| | | Relate #34450
* Fix commit message rendering and some UI problems (#34680)wxiaoguang2025-06-107-20/+31
| | | | | | * Fix #34679 * Fix #34676 * Fix #34674 * Fix #34526
* Migrate to urfave v3 (#34510)TheFox0x72025-06-1051-783/+1718
| | | | | | | | | migrate cli to urfave v3 add more cli tests --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-06-103-19/+510
|
* Fix last admin check when syncing users (#34649)wxiaoguang2025-06-098-20/+49
| | | Fix #34358
* Update x/crypto package and make builtin SSH use default parameters (#34667)wxiaoguang2025-06-097-53/+48
|
* Fix "oras" OCI client compatibility (#34666)wxiaoguang2025-06-094-8/+35
| | | | | | Fix #25846 1. the ImageConfig can be empty, fall back to default 2. the blob size can be empty, it still needs "Content-Length" header
* Fix: skip paths check on tag push events in workflows (#34602)endo0911engineer2025-06-092-0/+26
| | | | | | | | | | | | ## Summary Fix skipping of `paths` condition in workflows triggered by tag push events. ## Details - Ensure workflows triggered by tag pushes bypass the `paths` filter check. - Prevent incorrect skipping of workflows due to `paths` conditions on tag pushes. - Added and updated unit tests to verify correct behavior.
* Fix footnote jump behavior on the issue page. (#34621)charles2025-06-0913-24/+92
| | | | | | | | | | Close #34511 Close #34590 Add comment ID to the footnote item's id attribute to ensure uniqueness. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Only activity tab needs heatmap data loading (#34652)Lunny Xiao2025-06-091-11/+11
|
* Ignore "Close" error when uploading container blob (#34620)wxiaoguang2025-06-091-11/+5
|
* Keeping consistent between UI and API about combined commit status state and ↵Lunny Xiao2025-06-0921-281/+482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix some bugs (#34562) Extract from #34531 ## Move Commit status state to a standalone package Move the state from `structs` to `commitstatus` package. It also introduce `CommitStatusStates` so that the combine function could be used from UI and API logic. ## Combined commit status Changed This PR will follow Github's combined commit status. Before this PR, every commit status could be a combined one. According to https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference > Additionally, a combined state is returned. The state is one of: > failure if any of the contexts report as error or failure > pending if there are no statuses or a context is pending > success if the latest status for all contexts is success This PR will follow that rule and remove the `NoBetterThan` logic. This also fixes the inconsistent between UI and API. In the API convert package, it has implemented this which is different from the UI. It also fixed the missing `URL` and `CommitURL` in the API. ## `CalcCommitStatus` return nil if there is no commit statuses The behavior of `CalcCommitStatus` is changed. If the parameter commit statuses is empty, it will return nil. The reference places should check the returned value themselves.
* Refactor FindOrgOptions to use enum instead of bool, fix membership ↵wxiaoguang2025-06-0912-51/+74
| | | | visibility (#34629)
* [skip ci] Updated translations via CrowdinGiteaBot2025-06-092-2/+193
|
* Fix missed merge commit sha and time when migrating from codecommit (#34645)Lunny Xiao2025-06-081-0/+4
| | | Fix #34627
* [skip ci] Updated translations via CrowdinGiteaBot2025-06-084-0/+9
|
* Fix GetUsersByEmails (#34643)wxiaoguang2025-06-074-21/+47
|
* Add `--color-logo` for text that should match logo color (#34639)silverwind2025-06-073-2/+4
| | | | | | | | | Add a new color that indicates the logo's primary color and use it in the frontpage over previous green color. This will be useful for customization. <img width="1347" alt="Screenshot 2025-06-07 at 16 53 34" src="https://github.com/user-attachments/assets/496aa81f-c910-4c28-bd12-f2473a68bbab" />
* Update JS deps, regenerate SVGs (#34640)silverwind2025-06-076-766/+938
| | | Result of `make update-js svg`.
* Misc CSS fixes (#34638)silverwind2025-06-077-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. apply [`text-wrap: balance`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap#balance) to various places making the text wrapping nicer, moving `empty-placeholder` CSS to base because it's not repo-specific. <img width="537" alt="Screenshot 2025-06-07 at 15 09 00" src="https://github.com/user-attachments/assets/8b37d031-269d-4ab3-ba59-2ac469c431e4" /> <img width="514" alt="Screenshot 2025-06-07 at 15 11 16" src="https://github.com/user-attachments/assets/27a63117-be1d-4797-80f7-9ed14cca41dc" /> <img width="346" alt="Screenshot 2025-06-07 at 15 22 26" src="https://github.com/user-attachments/assets/2f371384-0330-4a00-bb79-bc3c50ba5c91" /> 2. fix overflow-related bug on actions run list, before: <img width="302" alt="Screenshot 2025-06-07 at 15 26 26" src="https://github.com/user-attachments/assets/d6607eeb-288b-4e81-a770-45a421c9c68c" /> After: <img width="299" alt="Screenshot 2025-06-07 at 15 26 59" src="https://github.com/user-attachments/assets/b0ddb66f-d4fe-4711-8ed9-eca08ce608f3" />
* Validate hex colors when creating/editing labels (#34623)Kemal Zebari2025-06-079-75/+150
| | | | | | | | Resolves #34618. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* add codecommit to supported services in api docs (#34626)TheFox0x72025-06-072-2/+3
|
* add openssh-keygen to rootless image (#34625)TheFox0x72025-06-061-0/+1
|
* Small fix in Pull Requests page (#34612)NorthRealm2025-06-062-1/+2
|
* bump to alpine 3.22 (#34613)techknowlogick2025-06-062-4/+4
|
* Fix notification count positioning for variable-width elements (#34597)65432025-06-051-2/+2
| | | | | | | | | | | | | | | | | The notification count is currently positioned using top/left coordinates from its container's top/left corner. This works fine for fixed-size containers like the bell icon. This PR changes the positioning to use bottom/left coordinates from the container's top/right corner instead. This improvement is needed when placing notification counts on text that can vary in size due to different languages or fonts. The bell and stopwatch should look the same after this change. --- *Sponsored by Kithara Software GmbH* Co-authored-by: Marcel Haß <m.hass@kithara.com>
* Fix margin issue in markup paragraph rendering (#34599)silverwind2025-06-051-0/+5
| | | | The Fomantic-inherited `p:last-child` rule in base.css interferes with this markdown rendering.
* Fix possible pull request broken when leave the page immediately after ↵Lunny Xiao2025-06-043-31/+22
| | | | | | | | | | clicking the update button (#34509) If user leaves the page, the context will become cancelled, so that the update process maybe terminal in an unexpected status. This PR haven't resolve the problem totally. It uses a background context to not cancel the update process even if the user leaved the pull request view page. Fix #31779
* Fix migration pull request title too long (#34577)Lunny Xiao2025-06-041-1/+1
| | | Fix #34294
* Fix issue label delete incorrect labels webhook payload (#34575)badhezi2025-06-031-0/+1
| | | | | | | | Fixes https://github.com/go-gitea/gitea/issues/34560 explanation of the bug in the issue setting `issue.isLabelsLoaded = false` before calling `deleteIssueLabel` guarantee we will load the new state of the labels into the issue object before sending it in the webhook.
* fixed incorrect page navigation with up and down arrow on last item of ↵metiftikci2025-06-031-7/+9
| | | | | | | dashboard repos (#34570) Previously, pressing the down arrow key on the last item of a list would incorrectly load the latest page when not release key. This commit corrects the logic to ensure that the next page is loaded as intended.
* Remove unnecessary duplicate code (#34552)Lunny Xiao2025-06-032-14/+0
| | | | | `GetIssuesLastCommitStatus` will revoke `GetIssuesAllCommitStatus` but it has been invoked. The `CommitStatus` template variable has never been used in notification subscription page so that it could be removed.
* Make pull request and issue history more compact (#34588)silverwind2025-06-031-5/+6
| | | Reduced spacing around history entries and inside the commits list, also fixed unequal horizontal spacing inside the commit badge.
* Refactor some tests (#34580)wxiaoguang2025-06-0323-148/+58
| | | | 1. use `test.MockVariableValue` as much as possible 2. avoid `time.Sleep` as much as possible
* Do not mutate incoming options to SearchRepositoryByName (#34553)Philip Peterson2025-06-0225-89/+91
| | | | | | | | | | | | | | Similar to #34544, this PR changes the `opts` argument in `SearchRepositoryByName()` to be passed by value instead of by pointer, as its mutations do not escape the function scope and are not used elsewhere. This simplifies reasoning about the function and avoids unnecessary pointer usage. This insight emerged during an initial attempt to refactor `RenderUserSearch()`, which currently intermixes multiple concerns. --------- Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
* Fix/improve avatar sync from LDAP (#34573)Râu Cao2025-06-022-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes 3 issues I encountered when debugging problems with our LDAP sync: 1. The comparison of the hashed image data in `IsUploadAvatarChanged` is wrong. It seems to be from before avatar hashing was changed and unified in #22289. This results in the function always returning `true` for any avatars, even if they weren't changed. 2. Even if there's no avatar to upload (i.e. no avatar available for the LDAP entry), the upload function would still be called for every single user, only to then fail, because the data isn't valid. This is unnecessary. 3. Another small issue is that the comparison function (and thus hashing of data) is called for every user, even if there is no avatar attribute configured at all for the LDAP source. Thus, I switched the condition nesting, so that no cycles are wasted when avatar sync isn't configured in the first place. I also added a trace log for when there is actually a new avatar being uploaded for an existing user, which is now only shown when that is actually the case. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some trivial problems (#34579)wxiaoguang2025-06-028-12/+46
|
* Retain issue sort type when a keyword search is introduced (#34559)badhezi2025-06-021-0/+1
| | | Fixes #34523
* Always use an empty line to separate the commit message and trailer (#34512)Jim Lin2025-06-023-5/+63
| | | | | | | | | If the message from form.MergeMessageField is empty, we will miss a "\n" between the title and the "Co-authored-by:" line. The title and message should have a blank line between of them. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix line-button issue after file selection in file tree (#34574)Kerwin Bryant2025-06-023-11/+35
| | | | | | | | Fix the issue where the line-button fails to work after selecting a file from the file tree. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-312-0/+4
|
* Fix doctor deleting orphaned issues attachments (#34142)Lunny Xiao2025-05-305-154/+93
| | | | Fix the bug when deleting orphaned issues attachments. The attachments maybe stored on other storages service rather than disk.