-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
action cannot be triggered when using on.pull_request #22958
Comments
The backend receives a Match this: gitea/modules/actions/workflows.go Line 208 in ca445cf
|
Ah, yes. We need a event convertion from Gitea's to Github's. |
any progress on this issue? |
…-gitea#23037) Follow go-gitea#22680 Partially Fix go-gitea#22958, on pull_request, `opened`, `reopened`, `synchronize` supported, `edited` hasn't been supported yet because Gitea doesn't trigger that events. --------- Co-authored-by: yp05327 <576951401@qq.com>
…3037) (#23471) Backport #23037 by @lunny Follow #22680 Partially Fix #22958, on pull_request, `opened`, `reopened`, `synchronize` supported, `edited` hasn't been supported yet because Gitea doesn't trigger that events. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: yp05327 <576951401@qq.com>
@lunny hi, I find it doesn't work yet.
gitea/modules/actions/workflows.go Lines 102 to 104 in ccd3a55
In this case, |
Is there a workaround to build pull requests? |
Follow #23037 Fix [#22598 comment](#22958 (comment)) Workflows with `pull_request` trigger event can't be triggered by `pull_request_sync` event. This PR adds the `canGithubEventMatch` function to check if a Github event can match any Gitea event. If the Github event matches a Gitea event, the related workflows should be triggered. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Follow go-gitea#23037 Fix [go-gitea#22598 comment](go-gitea#22958 (comment)) Workflows with `pull_request` trigger event can't be triggered by `pull_request_sync` event. This PR adds the `canGithubEventMatch` function to check if a Github event can match any Gitea event. If the Github event matches a Gitea event, the related workflows should be triggered. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Description
Action cannot be triggered when using
on.pull_request
.New pr can trigger this action.
But push to pr source branch cannot trigger it.
Github can trigger it.
Gitea Version
ca445c
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
build Gitea myself
run from command-line
Database
SQLite
The text was updated successfully, but these errors were encountered: