merge-pr-to-branch is a Github action that will manage your deployment branches via pull requests. This removes the need to manually reset/merge/push your deployment branch for testing.
See Gap Analysis.
To enable this github action, run the following in your repo:
curl -s https://raw.githubusercontent.com/deliveroo/merge-pr-to-branch/master/install/install.sh | bash -sWhich will add .github/workflows/merge-pr-to-branch.yml to your repo, based on the contents of this template file. This will use the defaults, which will merges any PRs to the main branch, that have the stage label to the staging branch (and then add the staged label).
- To merge a pull request to the
target-branch, add thestagelabel. merge-pr-to-branchwill run and attempt to merge the pull request- If successful, the
stagedlabel will be added along with a comment - If unsuccessful, a comment with the error will be added and the
stagelabel will be removed
- If successful, the