d253e2055b
Fix file extension on gogs.png ( #35793 ) ( #35799 )
...
Backport #35793 by @silverwind
During https://github.com/go-gitea/gitea/issues/35790 , it was noticed
that this PNG image had the wrong file extension. I also verified
`dingtalk.ico` and that one is actually an `.ico`.
Co-authored-by: silverwind <me@silverwind.io >
2025-10-31 03:33:27 +01:00
e194d89c74
Improve and fix markup code preview rendering ( #35777 ) ( #35787 )
...
Backport #35777 by @silverwind
1. Add the color on the link to the referenced file, which is the more
likely thing the user wants to click
2. Use monospace font on the SHA
3. Tweak text colors
4. Change SHA link to go to the commit instead of the repo root with
commit filter set
5. Added the repo name to the file link text
6. Fix broken line numbering rendering
The only major difference to GitHub is now the missing line numbers.
Before:
<img width="286" height="162" alt="Screenshot 2025-10-29 at 19 09 59"
src="https://github.com/user-attachments/assets/f16b4eec-caf2-4c31-a2b5-ae5f41747d4b "
/>
After:
<img width="378" height="157" alt="image"
src="https://github.com/user-attachments/assets/0c91dfd3-0910-4b2d-a43b-8c87cfbb933e "
/>
For comparison, GitHub rendering:
<img width="286" height="177" alt="image"
src="https://github.com/user-attachments/assets/8a9a07b7-9153-4415-9d7a-5685853e472a "
/>
Co-authored-by: silverwind <me@silverwind.io >
2025-10-30 09:06:44 +00:00
Giteabot and GitHub
88a8571b93
Update tab title when navigating file tree ( #35757 ) ( #35772 )
...
Backport #35757 by bytedream
2025-10-29 14:04:19 +00:00
45a88e09af
Fix "ref-issue" handling in markup ( #35739 ) ( #35771 )
...
Backport #35739 by wxiaoguang
This is a follow up for #35662 , and also fix #31181 , help #30275 , fix
#31161
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-29 19:03:02 +08:00
0925089b5e
Honor delete branch on merge repo setting when using merge API ( #35488 ) ( #35726 )
...
Backport #35488 by @kemzeb
Fix #35463 .
---------
Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-22 09:41:40 -07:00
cb338a2ba1
fix attachment file size limit in server backend ( #35519 ) ( #35720 )
...
Backport #35519 by @a1012112796
fix #35512
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-21 18:01:59 +00:00
Giteabot and GitHub
4af1d58c86
Fix various bugs ( #35684 ) ( #35696 )
...
Backport #35684 by wxiaoguang
2025-10-19 02:26:03 +08:00
f71df88a6b
Use LFS object size instead of blob size when viewing a LFS file ( #35679 ) ( #35680 )
...
Backport #35679 by surya-purohit
shows the main LFS filesize instead of the pointer filesize when viewing
a file
Co-authored-by: Surya Purohit <suryaprakash.sharma@sourcefuse.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-16 22:41:24 +08:00
f4512426a1
Fix code tag style problem and LFS view bug ( #35628 ) ( #35636 )
...
Backport #35628 by lutinglt
Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Co-authored-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-11 20:25:03 +00:00
a3458c669a
The status icon of the Action step is consistent with GitHub ( #35618 ) ( #35621 )
...
Backport #35618 by @lutinglt
#35616
Before:
running:
<img width="45" height="34" alt="image"
src="https://github.com/user-attachments/assets/e2508f98-2f1f-4b7e-a80c-30b406f42531 "
/>
waiting:
<img width="44" height="33" alt="image"
src="https://github.com/user-attachments/assets/e7c8164e-fdc3-4546-b088-31166544edb0 "
/>
---
After:
running:
<img width="49" height="43" alt="image"
src="https://github.com/user-attachments/assets/b5a9b245-a995-458a-af23-d1723daa3692 "
/>
waiting:
<img width="42" height="44" alt="image"
src="https://github.com/user-attachments/assets/ff72551e-cfb5-4665-af52-938ef0cf8f1c "
/>
`gitea-running.svg` is not an icon from the @ primer/octicon library,
extracted from the Github page. Github did not assign a clear class name
to this icon
Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Co-authored-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com >
2025-10-10 12:12:21 -07:00
b7bb0fa538
Fix diffpatch API endpoint ( #35610 ) ( #35613 )
...
Backport #35610 by @surya-purohit
Updates the swagger documentation for the `diffpatch` API endpoint.
The request body is corrected from the outdated `UpdateFileOptions` to
the current `ApplyDiffPatchOptions` to match the code implementation.
Closes [issue#35602](https://github.com/go-gitea/gitea/issues/35602 )
---------
Co-authored-by: Surya Purohit <suryaprakash.sharma@sourcefuse.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-10-10 03:28:40 +00:00
d94faf6d7e
fix(webhook): prevent tag events from bypassing branch filters targets ( #35567 ) ( #35577 )
...
Backport #35567 by Exgene
Co-authored-by: Kausthubh J Rao <105716675+Exgene@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
2025-10-03 17:49:16 +00:00
6c8879b832
Fix markup init after issue comment editing ( #35536 ) ( #35537 )
...
Backport #35536 by wxiaoguang
Fix #35533
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-09-26 07:11:21 +08:00
Gnanakeethan Balasubramaniam and GitHub
fe5afcb022
Exposing TimeEstimate field in the API ( #35475 )
...
Time Estimate field is not included in the issue modification webhooks
or issue API endpoints.
This PR fixes the field for the API.
---------
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@users.noreply.github.com >
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@cloudparallax.com >
2025-09-16 04:32:03 +00:00
luzpaz and GitHub
688abac5ca
Fix various typos in codebase ( #35480 )
2025-09-13 10:34:43 -04:00
84812e42df
Fix SSH signing key path will be displayed in the pull request UI ( #35381 )
...
Closes #35361
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-09-12 03:00:18 +00:00
89d7929711
Fix package link setting can only list limited repositories ( #35394 )
...
Fix #24801
<img width="1123" height="503" alt="image"
src="https://github.com/user-attachments/assets/823f4214-e08a-4506-9018-057c50e7fc52 "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-09-11 01:50:17 +02:00
silverwind and GitHub
593a52c2f0
Vertically center date in file view latest commit ( #35456 )
2025-09-10 20:20:23 +00:00
Lunny Xiao and GitHub
c290682521
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields ( #35418 )
2025-09-06 16:52:41 +00:00
07347634aa
Refactor and update mail templates ( #35150 )
...
- Moved mail templates to new directories.
- Added new devtest ymls.
- Embedded styles as much as possible.
- Added new translation keys for actions email.
---------
Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
Co-authored-by: delvh <dev.lh@web.de >
2025-09-04 20:20:42 -07:00
Lunny Xiao and GitHub
3e3c36bc30
split admin config settings templates to make it maintain easier ( #35294 )
2025-09-04 15:42:26 +00:00
Michal Suchánek and GitHub
ea96ff6b0c
Rename UpdateBranch API to RenameBranch API ( #35374 )
...
Discussed in #35368 , originally implemented in #32433
2025-09-01 16:12:05 +00:00
wxiaoguang and GitHub
e837c998b7
Fix context usages ( #35348 )
2025-08-27 11:00:01 +00:00
e844a41248
Use configurable remote name for git commands ( #35172 )
...
Closes #19403 , and makes it possible to use any remote name in code
snippets for an empty repository and pull request.
This change is very helpful to me, because I always use different name
for my gitea remote.
Uses setting config module to store the value. Default is `origin` for
backward compatibility.
### Screenshots
<details>
<summary>Empty repo</summary>
<img width="791" height="398" alt="image"
src="https://github.com/user-attachments/assets/7214053d-a8dd-4e77-8c9d-78936d9859e0 "
/>
</details>
<details>
<summary>Pull Request</summary>
<img width="591" height="452" alt="image"
src="https://github.com/user-attachments/assets/ebc3d25c-5d6d-481d-819d-9706af3c5594 "
/>
</details>
<details>
<summary>Settings page</summary>
<img width="1438" height="839" alt="image"
src="https://github.com/user-attachments/assets/d92bfa2c-7adc-4efe-95fa-0c55ad13b3f5 "
/>
</details>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-08-21 10:14:35 -07:00
c0f24bd803
Move organization's visibility change to danger zone. ( #34814 )
...
<img width="1185" alt="image"
src="https://github.com/user-attachments/assets/d48c4db2-df7c-43b3-986c-62e042190a51 "
/>
<img width="829" alt="image"
src="https://github.com/user-attachments/assets/772b8a14-6837-41f2-9d78-9f0489ef1c7d "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-08-20 20:57:42 -07:00
4ea8f33ae6
fix: remove duplicate IDs ( #35210 )
...
Signed-off-by: Kerwin Bryant <kerwin612@qq.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-08-18 22:45:15 +02:00
6543 and GitHub
ef613ee760
Add has_code to repository REST API ( #35214 )
...
similar to how we can enable/disable repos or issues on a repo add the
code unit as option to it.
affects
```
PATCH /repos/{owner}/{repo}
```
---
*Sponsored by Kithara Software GmbH*
2025-08-08 18:18:30 +02:00
silverwind and GitHub
de4ab41728
Vertically center "Show Resolved" ( #35211 )
2025-08-06 07:31:38 +00:00
Nicolas Auvray and GitHub
c760e3b2b5
Display pull request in merged commit view ( #35202 )
...
Fixes #34634
---
I am not a Web dev so I'm open to any change on the design. The
important thing for me is to have the feature implemented.
Here are screenshots on a test instance:
<img width="2758" height="420" alt="Capture d'écran 2025-08-02 161710"
src="https://github.com/user-attachments/assets/30abbeb5-6139-4a91-9348-36e78f1646e6 "
/>
<img width="2769" height="520" alt="Capture d'écran 2025-08-02 161725"
src="https://github.com/user-attachments/assets/29871f05-f0b5-4a31-9ada-812780269c7d "
/>
2025-08-04 23:30:12 +00:00
Lunny Xiao and GitHub
be2a6b4414
Fix bug when review pull request commits ( #35192 )
...
The commit range in the UI follows a half-open, half-closed convention:
(,]. When reviewing a range of commits, the beforeCommitID should be set
to the commit immediately preceding the first selected commit. For
single-commit reviews, we must identify and use the previous commit of
that specific commit.
The endpoint ViewPullFilesStartingFromCommit is currently unused and can
be safely removed.
Fix #35157
Replace #35184
Partially extract from #35077
2025-08-03 10:23:10 -07:00
c10c4203ee
Add owner and parent fields clarification to docs ( #35023 )
...
Issue: https://github.com/go-gitea/gitea/issues/9637
Changes introduced: I have clarified the problematic terms (owner and
parent) in all affected endpoints.
The changes were made to relevant:
- HTTP endpoint parameters' descriptions
- response/request models' fields
This MR is big, but most changes are the same. If you'd like me to break
this MR into several smaller ones, let me know :)
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-23 06:44:34 +00:00
Lunny Xiao and GitHub
8ee96039aa
Fix some missed GitHeadRefName when renaming ( #35102 )
2025-07-17 14:01:11 +00:00
0d00ec7eed
Send email on Workflow Run Success/Failure ( #34982 )
...
Closes #23725


/claim #23725
---------
Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: ChristopherHX <christopher.homberger@web.de >
2025-07-15 18:54:31 -07:00
558005a5ea
Use monospace font in PR command line instructions ( #35074 )
...
Before:
<img width="878" height="426" alt="Screenshot 2025-07-14 at 17 17 11"
src="https://github.com/user-attachments/assets/6e27acb9-bad5-4811-b7b1-5418f0ef12eb "
/>
After:
<img width="878" height="429" alt="Screenshot 2025-07-14 at 17 17 22"
src="https://github.com/user-attachments/assets/b0bd2bfa-e4e2-492a-9c08-66607343a459 "
/>
Co-authored-by: Giteabot <teabot@gitea.io >
2025-07-15 09:48:14 +02:00
d08459820d
Improve submodule relative path handling ( #35056 )
...
Fix #35054
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2025-07-14 23:28:34 +08:00
Gary Wang and GitHub
ece0ce6854
UI: add hover background to table rows in user and repo admin page ( #35072 )
2025-07-14 08:29:35 -04:00
wxiaoguang and GitHub
7cc47da78c
Refactor view issue & comment list styles ( #35061 )
...
Fix #35060
2025-07-13 22:52:35 +08:00
56eccb4995
Add Notifications section in User Settings ( #35008 )
...
Related: #34982
---------
Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-11 10:17:52 +08:00
7a15334656
Fix git commit committer parsing and add some tests ( #35007 )
...
* Fix #34991
* Fix #34882
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-10 19:03:36 +00:00
wxiaoguang and GitHub
a5a3d9b101
Refactor OpenIDConnect to support SSH/FullName sync ( #34978 )
...
* Fix #26585
* Fix #28327
* Fix #34932
2025-07-10 18:35:59 +00:00
32152a0ac0
Also display "recently pushed branch" alert on PR view ( #35001 )
...
This commit adds the "You recently pushed to branch X" alert also to PR
overview, as opposed to only the repository's home page.
GitHub also shows this alert on the PR list, as well as the home page.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-07-10 17:17:56 +00:00
af0196c145
Fix ListWorkflowRuns OpenAPI response model. ( #35026 )
...
Change the OpenAPI response of `ListWorkflowRuns` to `WorkflowRunsList`
like it is supposed to be.
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-10 05:58:07 +00:00
ea809a5220
Partially refresh notifications list ( #35010 )
...
This PR prevents full reloads for the notifications list when changing a
notifications status (read, unread, pinned).
---------
Co-authored-by: Anton Bracke <anton.bracke@fastleansmart.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-10 04:15:14 +00:00
wxiaoguang and GitHub
211135b4bb
Fix various problems ( #35012 )
...
* Fix #35011
* Fix incorrect log message for "Protocol"
* Remove unnecessary styles, fix "comment-header" wrap, fix label height
2025-07-09 16:46:51 +00:00
Scion and GitHub
bb0c84e8c3
Fix the response format for actions/workflows. ( #35009 )
...
This PR fixes the response format for the OpenAPI Spec of
`ActionsListRepositoryWorkflows`.
It was specified in the OpenAPI spec as returning a `[]*ActionWorkflow`,
but it actually should return a `api.ActionWorkflowResponse`.
The test already expects an `api.ActionWorkflowResponse` like expected.
2025-07-09 22:32:02 +08:00
wxiaoguang and GitHub
55f350542c
Refactor mail template and support preview ( #34990 )
2025-07-09 10:25:25 +08:00
Lunny Xiao and GitHub
f1b78f3cdd
Fix bug when displaying git user avatar in commits list ( #35003 )
...
A quick fix for #34991
`ValidateCommitsWithEmails` will create a fake user for a git commit
user with a related Gitea user. The UI should not display a link for
such users.
2025-07-08 22:49:30 +00:00
wxiaoguang and GitHub
3763c2ae28
Refactor time tracker UI ( #34983 )
...
Although we decided to "reduce the button amount" on the side bar, not
only one user reported that the "time tracker dropdown" is not easy to
use.
So the best we can do at the moment is: move the buttons to the sidebar
again.
Fix #34979
2025-07-08 08:59:31 +00:00
wxiaoguang and GitHub
9dafcc5c9e
Improve project & label color picker and image scroll ( #34971 )
...
Fix #34609
Fix #34967
2025-07-06 23:37:26 +08:00
wxiaoguang and GitHub
e0745eb14d
Refactor webhook and fix feishu/lark secret ( #34961 )
2025-07-06 06:04:08 +00:00