-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Automerge not working with Bitbucket Server #465
Comments
Fixes #465 which is caused by XSRF detection on Bitbucket server and cloud.
@philslab-ninja I've released https://github.com/runatlantis/atlantis/releases/tag/v0.4.15 with what is hopefully a fix. Can you test it for me please? |
Hi, I can confirm this issue is resolved. Unfortunately a new issue has shown now, when the merge is being done this error happens:
Seems this only affects bitbucket server (on-prem) and seems to be fixable by first polling for the current PR version, then using that version in the merge call. Thanks so much! |
I will open a seperate issue for this to keep things clean 👍 This issue has been resolved |
Thanks Phillip. Sorry for the trouble, Bitbucket Server is hard to test because I only have a trial license that expires 30 days after I create it. |
When using automerge with Bitbucket Server this happens:
Automerging failed: making request "POST http://bitbucket-on-prem.example.org:7990/rest/api/1.0/projects/exampleproject/repos/examplerepo/pull-requests/1/merge" unexpected status code: 403, body: XSRF check failed
Seems to be fixable by adding X-Atlassian-Token header to each request, setting the value to no-check. see: https://confluence.atlassian.com/cloudkb/xsrf-check-failed-when-calling-cloud-apis-826874382.html
The text was updated successfully, but these errors were encountered: