Skip to content
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

⚠️ problem contacting GitHub API with method 'pull_request/update_branch' #857

Closed
tay1orjones opened this issue Nov 14, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@tay1orjones
Copy link

tay1orjones commented Nov 14, 2022

⚠️ problem contacting GitHub API with method 'pull_request/update_branch'

We've started seeing this error more and more preventing automatic merging. I'm not sure what triggers it. Usually we can resolve it by waiting for the PR to become out of date with main and hitting the "update with main" button causing a merge commit to be added.

This PR had it happen: carbon-design-system/carbon-website#3211

Click to expand branch protection settings

image

@tay1orjones tay1orjones added the bug Something isn't working label Nov 14, 2022
@chdsbd
Copy link
Owner

chdsbd commented Nov 15, 2022

Hey @tay1orjones,

Thanks for the report. I believe there's a recent bug introduced in the GitHub API that's causing this issue.

Here's the error message from your workflow run: https://github.com/carbon-design-system/carbon-website/runs/9484391386

{
"message":"refusing to allow a GitHub App to create or update workflow .github/workflows/platform-content-sync.yml without workflows permission",
"documentation_url":"https://docs.github.com/rest/reference/pulls#update-a-pull-request-branch"
}

The pull request you linked isn't even touching any .github/workflows/ files.

This appears to only affect forks, which is a problem mainly for open source repositories like yours. I'm currently trying to convince GitHub Support this is an issue and not expected behavior.

I'm going to try replicating this issue and see if I can find a workaround.

@chdsbd
Copy link
Owner

chdsbd commented Nov 15, 2022

I was able to replicate the issue in the following way

  1. Fork the repository
  2. Update the main branch of the parent repository so the fork is out of date
  3. Make a change to the fork and open a pull request
  4. Attempt to merge the pull request with Kodiak and observe Kodiak seeing this error when attempting to update the branch

I think GitHub made a change that broke the /update-branch API endpoint for Forks.

Here's an old related issue: #104

@tay1orjones
Copy link
Author

@chdsbd This seemed to have resolved itself shortly after your investigation but now we're hitting it again

@chdsbd
Copy link
Owner

chdsbd commented Jan 14, 2023

Hey @tay1orjones,

Thanks for the ping.

GitHub added a bug to their API that's causing this. I tried opening a ticket in October but it was archived. I've just opened another one. There's a related issue here: #853

@chdsbd
Copy link
Owner

chdsbd commented Feb 4, 2023

This is still an issue and I'm still trying to get GitHub Support to recognize this as a bug to escalate to an engineer. I think I've given them a better reproduction step so hopefully we'll get a better response.

I'm sorry these bug has been outstanding for so long.

This issue is a duplicate of #853, so I'm going to write an update there now. Please subscribe to that issue to get updates.

@chdsbd chdsbd closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2023
@chdsbd
Copy link
Owner

chdsbd commented Feb 4, 2023

Just to be clear, I'm working on resolving this issue and providing more foolproof reproduction steps to GitHub support, so subscribe to #853 to get updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants