Skip to content

Auto mege configuration

Satoshi Terasaki edited this page May 25, 2024 · 4 revisions

Description

This page contains information about the merging a pull request automatically into the main branch. Auto-merge prevents you from waiting around for requirements to be met, so you can move on to other tasks.

Read this documentation to learn more.

Enabling auto-merge

To enable auto-merge to main branch, we should protect main branch so that our pull request can't be merged immediately. See this documentation.

Managing protection rule for main branch

To protect main branch, we need create a branch protection rule for main branch. See this documentation.

We've already configured a branch protection rule for main branch. Here is what we did:

  • Checking Require status checks to pass before merging
  • In Status check that are required we added check (1.10, ubuntu-latest x64) that corresponds to this workflow

Useful links (in Japanese)

ブランチ保護・Auto-merge に関する日本語でまとまった役立つリンク集です