-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Syncer should automatically merge PRs or enable auto merge (#15)
As part of supporting taking over the dev environment (#13) we want hydros to be automerge PRs. This also removes the need to rely on bulldozer or similar apps to automatically merge PRs. The syncer will automatically enable auto merge if a PR can't be merged immediately. To prevent automerge users should set appropriate branch protections (e.g. require approvals) The original code was based on GitHub's CLI's code for merging. https://github.com/cli/cli/blob/trunk/pkg/cmd/pr/merge/merge.go The hydros code is much simpler since its more oppinionated and requires fewer options than what the CLI supports. Copy ghrepo and ghinstance from github.com/CLI/CLI * These are internal packages of that repository. * Some of the code for the merge functionality depends on them. * Remove the dependency on kubeflow/testing for ghrepo * We needed to pull in some changes from github's latest copy of ghrepo * Upgrade to v2 of the github CLI in terms of depenencies
- Loading branch information
Showing
11 changed files
with
1,247 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.