项目作者: nucleos

项目描述 :
🤖 Automerge labeled GitHub Pull Requests.
高级语言: PHP
项目地址: git://github.com/nucleos/auto-merge-action.git
创建时间: 2021-02-12T21:54:19Z
项目社区:https://github.com/nucleos/auto-merge-action

开源协议:MIT License

下载


GitHub AutoMerge Action

Continuous Integration
Code Coverage
Type Coverage

This GitHub action will scan all open pull requests in the current project and merge them.

The pull request needs to be mergeable (no conflicts), got a green build and contains a label (default: automerge).
If the pull request contains an ignore label (default: wip), the pull request will be skipped.

After a succesul merge, the label is removed.

The action is designed to run asynchronously (e.g. every hour, once a day), so it can take a few minutes after the pull request got merged.

Usage

You can create a new workflow that runs every day at 10 AM.

You should not use a very short interval otherwise you will reach the GitHub API limit.

  1. # .github/workflows/automatic-merge.yml
  2. name: "Automatic Merge"
  3. on:
  4. schedule:
  5. - cron: '0 * * * *'
  6. jobs:
  7. merge:
  8. name: "Merge Pull Requests"
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: "Merge"
  12. uses: "nucleos/auto-merge-action@1.0.0"
  13. env:
  14. "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}