Skip to content

review-bots/merge-pr-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

merge-pr-example

This is a working example of how you could use the Label Bot.

Scenario

You want to automatically merge pull requests that are classified as documentation.

Warning

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.

Setup

  1. Install the Label Bot application.

  2. Create CI workflow.

    Typically, you will use tools for linting, compiling and testing your code.

    A fake example is in .github/workflows/ci.yaml

  3. Add branch protection on your main branch.

  4. 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.

Example Pull Request

Pull Request #2 shows what happens when a PR is labelled with kind/documentation.

Releases

No releases published

Packages

No packages published