revert paritytech/polkadot#6577 & related changes #570
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Merge Bot | |
on: | |
# GitHub considers PRs as issues | |
issue_comment: | |
types: [created] | |
jobs: | |
set-auto-merge: | |
runs-on: ubuntu-latest | |
environment: master | |
# Important! This forces the job to run only on comments on Pull Requests that starts with '/merge' | |
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/merge') }} | |
steps: | |
- name: Get the GitHub handle of the fellows | |
uses: paritytech/[email protected] | |
id: fellows | |
- name: Generate token | |
id: merge_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.MERGE_APP_ID }} | |
private_key: ${{ secrets.MERGE_APP_KEY }} | |
- name: Set auto merge | |
uses: paritytech/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ steps.merge_token.outputs.token }} | |
MERGE_METHOD: "SQUASH" | |
ALLOWLIST: ${{ steps.fellows.outputs.github-handles }} |