-
-
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
Error when merge pull request #6946
Comments
Have you changed git repository storage directory? Are you using docker? |
@lafriks Yes. I use gitea with docker. data volume mounted on host and no changed recently. |
Same issue, but only on protected branches. |
This could be related to this change #6608 |
Same as @ihuro , it can do merge successfully if I close the protection of master branch. |
Which merge style did you use? |
Agh! Sorry about this! @lafriks we can detect quite easily whether a push is being performed by gitea internally by checking the (I think there's actually another issue in #6672 - whereby: Lines 622 to 636 in 7dd9837
Might be sending double hooks.) I'll take a look. Sorry once again. |
OK, I think what we should do is to set (another) environment variable with the PR number we're merging - that will allow people to have hooks that detect PR merges. |
This affected only when running gitea on docker |
It seems because the |
@zongwei007 could you confirm that #6971 will fix this issue? |
@lunny merge successfully on 1.9.0+dev-262-g96b412bb8. |
@zongwei007 OK. |
…zeripath/gitea into fix-go-gitea#6946-pass-in-pr-into-hooks
* Fix #6946 by checking PullRequest ID on pushing * Ensure we have the owner name, the pr attributes and the the issue * Fix TestSearchRepo by waiting till indexing is done * Update integrations/repo_search_test.go * changes as per @mrsdizzie * missing comma * Spelling mistake * Fix full pushing environment
go-gitea#6961) * Fix go-gitea#6946 by checking PullRequest ID on pushing * Ensure we have the owner name, the pr attributes and the the issue * Fix TestSearchRepo by waiting till indexing is done * Update integrations/repo_search_test.go * changes as per @mrsdizzie * missing comma * Spelling mistake * Fix full pushing environment
[x]
):Description
When I merge a pull request of repository
Project/Shell-Asset
, I got a 500 error.Project
is a private organization andshell-asset
is private repository also. I disabled git hook from app.ini but does not work.The text was updated successfully, but these errors were encountered: