This PR includes a new GitHub workflow to sync two branches through a PR (reference).
The user must provide source and target branches as inputs.
Some notes:
The workflow will fail if any of the inputs are invalid.
The workflow won't create a PR if there are no changes to merge.
The workflow will create a PR even if there are conflicts. In this case, someone must send the fixes to the sync branch in a new PR. Once the fix PR is merged, the sync PR will be fixed as well.
The repository must have write permissions for workflows and also allow workflows to create PRs. I believe this repository already has these settings on.
Ideally, tests should be enough to guarantee that the PR is ready to be merged. Depending on the changes, we can decide to checkout the sync branch locally and perform some sanity checks.
Currently, this workflow is manually triggered but we can set this up to run on a schedule for particular branches, if it makes sense.
Description
How Has This Been Tested?
I added this workflow in a new repository and tested different scenarios.
Merge criteria:
[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/opendatahub-io/notebooks/blob/main/OWNERS)~~ [atheo89]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
https://issues.redhat.com/browse/RHOAIENG-8784
This PR includes a new GitHub workflow to sync two branches through a PR (reference). The user must provide
source
andtarget
branches as inputs.Some notes:
write
permissions for workflows and also allow workflows to create PRs. I believe this repository already has these settings on.Description
How Has This Been Tested?
I added this workflow in a new repository and tested different scenarios.
Merge criteria: