This repository demonstrates the use of a GitHub Actions workflow to override the merge options as provided by GitHub. Refer to the Medium article https://medium.com/@_samkitjain/override-githubs-merge-strategies-cea7eb789e23 to know more.
- Create a personal access token with the
public_repo
andrepo:status
permissions. - Create a repository secret by the name
GH_TOKEN
and add the token created above as the value.
- Copy-paste the merge.yml file into your repository.
- Open a pull request.
- Type in
/merge
as a comment in the pull request.
- If the workflow is not triggering, it could be because the workflow YAML file hasn't been merged into the default branch.
- If you want to customise the validation checks or the merge strategy, edit the workflow YAML at will.