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

Support update method rebase #25

Open
mcwarman opened this issue Oct 6, 2023 · 0 comments
Open

Support update method rebase #25

mcwarman opened this issue Oct 6, 2023 · 0 comments

Comments

@mcwarman
Copy link

mcwarman commented Oct 6, 2023

I couldn't find any documentation on this for the API endpoint but after some research into the requests the UI is making itself it is possible to update PRs with a rebase using the following option:

gh api \
  --method PUT \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  "/repos/$org/$repo/pulls/$pr/update-branch" \
  -f update_method=rebase

Could this be a configurable option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant