Christopher Homberger
da738eaa74
webhook deliver the workflow field
2025-03-17 21:58:29 +01:00
Christopher Homberger
658583a584
Merge branch 'main' of https://github.com/go-gitea/gitea into workflow-webhook-api
2025-03-17 21:49:12 +01:00
Christopher Homberger
fb8a221d7f
Move GetActionWorkflow to convert
2025-03-17 20:40:27 +01:00
John Smith
8f051d598c
Added Description Field for Secrets and Variables ( #33526 )
...
Fixes #33484
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-17 19:24:54 +00:00
Christopher Homberger
392baec50b
remove dead code
2025-03-17 20:18:12 +01:00
Christopher Homberger
295bf45d5c
cleanup and fix webhook type bug
2025-03-17 20:17:42 +01:00
Christopher Homberger
a178e4be7a
use cached task instance if available
2025-03-17 20:13:33 +01:00
Christopher Homberger
20f5d6ee95
use ToActionsStatus
2025-03-17 20:08:12 +01:00
Christopher Homberger
988cafe780
remove duplicated code
2025-03-17 20:06:19 +01:00
wxiaoguang
9d7c02f9f7
Try to figure out attribute checker problem ( #33901 )
...
For #31600
2025-03-17 11:59:34 -07:00
Christopher Homberger
013a0af385
wip
2025-03-17 17:27:25 +01:00
Lunny Xiao
7fd44a85ca
Move hooks function to gitrepo and reduce expose repopath ( #33890 )
...
Extract from #28966
Follow #33874
2025-03-16 16:12:55 +00:00
Lunny Xiao
c88e71c1d2
Refactor functions to reduce repopath expose ( #33892 )
2025-03-16 03:14:56 +00:00
Lunny Xiao
0056fdb942
Move git references checking to gitrepo packages to reduce expose of repository path ( #33891 )
2025-03-15 19:48:59 -07:00
Lunny Xiao
3e2e7bf4e5
Add lock for a repository pull mirror ( #33876 )
...
Fix #33647
This PR add a global lock for repository pulling mirror.
2025-03-15 10:23:18 -07:00
Kerwin Bryant
92f997ce6b
Add file tree to file view page ( #32721 )
...
Resolve #29328
This pull request introduces a file tree on the left side when reviewing
files of a repository.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-15 16:26:49 +08:00
Christopher Homberger
edb24592fc
wip event
2025-03-14 21:07:36 +01:00
ChristopherHX
65e2411394
Feature: Ephemeral action runners ( #33570 )
...
* This includes a runner mock test for hardend PickTask behavior like
described in my proposal
* Runner register ephemeral flag introduced in
https://gitea.com/gitea/act_runner/pulls/649
Closes #32461
2025-03-14 12:27:24 -07:00
Lunny Xiao
55cc649d3d
Add abstraction layer to delete repository from disk ( #33879 )
...
Extract from #28966
Follow #33874
2025-03-14 18:38:55 +00:00
wxiaoguang
cb6b33c9cd
Ignore trivial errors when updating push data ( #33864 )
...
Fix #23213
2025-03-14 08:36:39 +00:00
Lunny Xiao
9c673d066c
Add abstraction layer to check if the repository exists on disk ( #33874 )
...
Extract from #28966
This PR uses `gitrepo.IsRepositoryExist` instead of `util.IsExist` to
detect whether the repository exist in disk. This will move `RepoPath`
detail behind of package `gitrepo` to make it easier to do possible
changes where storing the repositories.
No code change
2025-03-14 03:00:56 +00:00
Lunny Xiao
1e7248047c
Pull request updates will also trigger code owners review requests ( #33744 )
...
Fix #33490
It will only read the changed file on the pushed commits but not all the
files of this PR.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-13 19:36:14 -07:00
TheFox0x7
5d65b9060b
remove context from retry downloader ( #33871 )
...
follow up to https://github.com/go-gitea/gitea/pull/33399 as I
apparently missed this one.
2025-03-14 00:28:57 +00:00
wxiaoguang
3996518ed4
Refactor cache-control ( #33861 )
...
And fix #21391
2025-03-13 07:04:50 +08:00
ChristopherHX
651ef66966
Add workflow_job webhook ( #33694 )
...
Provide external Integration information about the Queue lossly based on
https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=completed#workflow_job
Naming conflicts between GitHub & Gitea are here, Blocked => Waiting,
Waiting => Queued
Rationale Enhancement for ephemeral runners management #33570
2025-03-11 10:40:38 -07:00
ChristopherHX
a92d5f65ce
Fix auto concurrency cancellation skips commit status updates ( #33764 )
...
* add missing commit status
* conflicts with concurrency support
Closes #33763
Co-authored-by: Giteabot <teabot@gitea.io>
2025-03-10 15:58:48 -07:00
wxiaoguang
657239b480
Fix material icon & diff highlight ( #33844 )
2025-03-10 22:34:48 +08:00
Lunny Xiao
ae63568ce3
Move notifywatch to service layer ( #33825 )
...
No logic change.
2025-03-10 00:54:25 +00:00
wxiaoguang
7290bfaccb
Only keep popular licenses ( #33832 )
...
Fix #33467
2025-03-10 06:40:37 +08:00
Dustin Firebaugh
3f1f808b9e
Full-file syntax highlighting for diff pages ( #33766 )
...
Fix #33358 , fix #21970
This adds a step in the `GitDiffForRender` that does syntax highlighting for the
entire file and then only references lines from that syntax highlighted
code. This allows things like multi-line comments to be syntax
highlighted correctly.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-09 12:51:58 +08:00
wxiaoguang
6f13331754
Improve theme display ( #30671 )
...
Document: https://gitea.com/gitea/docs/pulls/180

2025-03-08 21:38:11 +00:00
TheFox0x7
4c4c56c7cd
Decouple context from repository related structs ( #33823 )
...
Calls that required context implicitly are made to pass it as argument
2025-03-08 13:12:46 -08:00
wxiaoguang
4ed71eb754
Improve log format ( #33814 )
2025-03-08 21:47:11 +08:00
wxiaoguang
6422f05a4e
Decouple diff stats query from actual diffing ( #33810 )
...
The diff stats are no longer part of the diff generation.
Use `GetDiffShortStat` instead to get the total number of changed files,
added lines, and deleted lines.
As such, `gitdiff.GetDiff` can be simplified:
It should not do more than expected.
And do not run "git diff --shortstat" for pull list. Fix #31492
2025-03-08 17:36:08 +08:00
Lunny Xiao
1b2dffff8e
Add global lock for migrations to make upgrade more safe with multiple replications ( #33706 )
2025-03-07 21:08:53 +00:00
TheFox0x7
e7cf62f2f7
remove context from mail struct ( #33811 )
...
it can be passed by argument instead
2025-03-06 20:57:00 +00:00
Lunny Xiao
0453177b61
Refactor: move part of updating protected branch logic to service layer ( #33742 )
2025-03-05 19:15:40 +00:00
sommerf-lf
7cdde20c73
Email option to embed images as base64 instead of link ( #32061 )
...
ref: #15081
ref: #14037
Documentation: https://gitea.com/gitea/docs/pulls/69
# Example
Content:

Result in Email:

Result with source code:
(first image is external image, 2nd is now embedded)

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-05 16:29:29 +00:00
TheFox0x7
ae3a18e01a
Remove context from git struct ( #33793 )
...
Argument is moved from struct init in command run, which lets us remove
context from struct.
2025-03-04 11:56:11 -08:00
Denys Konovalov
ffb276578f
Adjust appearence of commit status webhook ( #33778 )
...
Some visual improvement for the commit status webhook message introduced
by #33320
- use short commit SHA as already done in e. g. commit webhook
- fix spacing, link text
- do not set user link for internal gitea-actions user
Before:

After:

2025-03-03 21:23:42 +00:00
wxiaoguang
216243eee2
Refactor error system ( #33771 )
...
It should not expose `util.SilentWrap` or construct it manually.
2025-03-03 05:36:10 +00:00
Lunny Xiao
dbed39d632
Add migrations and doctor fixes ( #33556 )
...
Fix #33535
2025-03-02 21:01:28 -08:00
wxiaoguang
02657e85a4
Refactor mail code ( #33768 )
...
`mail.go` contains various different functions, it's time to split it.
2025-03-03 03:31:47 +00:00
Lunny Xiao
5cbdf83f70
Use pullrequestlist instead of []*pullrequest ( #33765 )
...
Just renames no code changed.
2025-03-02 10:14:49 -08:00
ChristopherHX
b684f51d20
Webhook add X-Gitea-Hook-Installation-Target-Type Header ( #33752 )
...
This is a X-GitHub Header port
* repository for repository webhooks (matches GitHub)
* organization for organization webhooks (matches GitHub)
* user for user webhooks (Gitea specific)
* system for system webhooks (Gitea specific)
* default for default hooks needs testing (Gitea specific)
- `X-Gitea-Hook-Installation-Target-Type`
- `X-GitHub-Hook-Installation-Target-Type`
2025-03-01 06:50:49 +00:00
Lunny Xiao
aca21549f2
Add composor source field ( #33502 )
...
Fix #33066
2025-02-28 16:29:21 +00:00
Guillaume
303af554c9
Improve "generate new access token" form ( #33730 )
...
Fix: https://github.com/go-gitea/gitea/issues/33519
As discussed in [PR
#33614 ](https://github.com/go-gitea/gitea/pull/33614 ), the
ScopedAccessTokenSelector Vue component is not particularly useful.
This PR removes the component and reverts to using HTML templates. It
also introduces some (hopefully) useful refactoring.
The Vue component was causing the UX bug reported in the linked issue.
Required form fields are now properly working, as expected (see
screenshot).

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-27 19:40:12 +00:00
wxiaoguang
56a0a9c750
Fix git empty check and HEAD request ( #33690 )
2025-02-24 02:11:29 +00:00
Lunny Xiao
f2fbb897f3
Deleting repository should unlink all related packages ( #33653 )
...
Fix #33634
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-21 04:17:56 +00:00
TheFox0x7
cc1fdc84ca
Use test context in tests and new loop system in benchmarks ( #33648 )
...
Replace all contexts in tests with go1.24 t.Context()
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-20 09:57:40 +00:00