-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
MergePullRequest fails to trigger action #32335
Comments
The use of |
Wouldn't this workflow be triggered only when some code review requested? |
Yes. But this error occurs before detecting workflows. gitea/services/actions/notifier_helper.go Lines 168 to 185 in 0d11ba9
|
I have branch protection and the pull request has been reviewed before merging. The author of the pull request is merging from the gitea interface. I can share the repo settings and the pipeline trigger. Is this enough? |
I'd like to know some details about that PR.
|
|
Are there any workflows that are triggered by other events (like "push")? Can these workflows be triggered properly? |
Push and other events trigger correctly |
Just updated to gitea-1.22.4-windows-4.0-amd64.exe The issue is still present in the GoGit 1.22.4 version |
Are the versions(1.22.2 and 1.22.3) where you encountered the error also GoGit versions? |
@Zettat123 yes, where gogit versions |
I can reproduce this issue on the GoGit version so I think it's related to GoGit. I'll try to create a PR to fix it. |
Backport #32705 by @Zettat123 Fix #32335 When we call `GetRefCommitID` and the reference is already a commit ID, the `GetRefCommitID` with go-git will return a `NotExist` error. This PR improves the `GetRefCommitID` for go-git. If the input is already a commit ID, it will be returned directly. Co-authored-by: Zettat123 <[email protected]>
Description
When merging a pull request the related actions that should trigger on:
do not start and the gitea instance throws the following error:
[E] an error occurred while executing the MergePullRequest actions method: gitRepo.GetRefCommitID: object does not exist [id: 32e9eaa99d775bb8922a6ac354a2c9b3dcfe834b, rel_path: ]
This was working fine on 1.22.1
Gitea Version
1.22.2 and 1.22.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.46.0.windows.1
Operating System
Windows 10
How are you running Gitea?
Self hosted on Windows
Database
None
The text was updated successfully, but these errors were encountered: