This is a working example of how you could use the Label Bot.
You want to automatically merge pull requests that are classified as documentation.
This auto-merge behaviour requires a high level of trust of people, processes and tools you have in place.
If configured incorrectly, this could result in code being released that is broken.
-
Install the Label Bot application.
-
Create CI workflow.
Typically, you will use tools for linting, compiling and testing your code.
A fake example is in .github/workflows/ci.yaml
-
Add branch protection on your
mainbranch. -
Create .github/workflows/automerge.yaml to automatically merge Pull Requests.
This uses Merge pull requests.
This example merges Pull Requests labeled as documentation, but you could change the conditions or use other labels for your workflow.
Pull Request #2 shows what happens when a PR is labelled with kind/documentation.
