-
Notifications
You must be signed in to change notification settings - Fork 769
Closed
Description
I'm looking into a programatically way to sync a fork using GitHub Java API. Is this supported?
- Instructions for CLI: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork
- Instructions for REST: https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#sync-a-fork-branch-with-the-upstream-repository
I'm using GitHub Java API to automate a PR that we need to do as part of release process. Some of the PRs are done in public/open-source repositories where one needs to create a fork (or sync that fork if it already exists), makes changes in the fork, and then open a PR to the original project.
I've implemented this automation using the REST API but I would be interested in doing it with GitHub Java API if possible to use a single style for all my repo automations.