Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

agaroot-technologies/merge-master

 
 

Repository files navigation

Caution

The repository has been archived and will no longer be maintained.
Moving forward, maintenance will be conducted in the following repository:
https://github.com/praha-inc/merge-master

Merge Master

automatically merge main branch to topic branch or rebase renovate bot PRs.

When

  • CI is completed
  • PR is enabled auto merge
  • main branch is updated

Then

  • Merge main branch to a branch that is enabled auto merge
  • Rebase renovate bot PRs.

If there is a PR that is running CI and following the main branch, Marge Master will not merge the main branch to the PR branch.

👏 Usage

Github Personal Access Token or Github App Token is required to use this action because a commit created via default Github Action Token cannot trigger another Github Action.

The Token or App must have the following permissions:

  • checks: read
  • metadata: read
  • pull_requests: write
  • issues: write
  • code: write

With Personal Access Token

name: Merge Master

on:
  workflow_run:
    workflows:
      - "{Your CI Names}"
    types:
      - completed
  pull_request:
    types:
      - auto_merge_enabled
  push:
    branches:
      - main
concurrency:
  group: merge-master

jobs:
  merge-master:
    runs-on: ubuntu-latest
    steps:
      - uses: agaroot-technologies/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_PAT_TOKEN }}

With Github App Token

name: Merge Master

on:
  workflow_run:
    workflows:
      - "{Your CI Names}"
    types:
      - completed
  pull_request:
    types:
      - auto_merge_enabled
  push:
    branches:
      - main
concurrency:
  group: merge-master

jobs:
  merge-master:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
        id: get-app-token
        with:
          app-id: ${{ vars.APP_ID }}
          private-key: ${{ secrets.APP_PRIVATE_KEY }}
      - uses: agaroot-technologies/merge-master@main
        with:
          github-token: ${{ steps.get-app-token.outputs.token }}

🤝 Contributing

Contributions, issues and feature requests are welcome.

Feel free to check issues page if you want to contribute.

📝 License

Copyright © 2020 AGAROOT TECHNOLOGIES.

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.9%
  • JavaScript 12.1%