[fix] Improve event editor logic, validation, and messaging for clarity and robustness #939
This file contains hidden or 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: automerge | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- synchronize | |
- opened | |
- edited | |
- ready_for_review | |
- reopened | |
- unlocked | |
pull_request_review: | |
types: | |
- submitted | |
check_suite: | |
types: | |
- completed | |
status: {} | |
jobs: | |
automerge: | |
runs-on: ubuntu-latest | |
if: > | |
contains(github.event.pull_request.labels.*.name, 'gate') | |
environment: github | |
steps: | |
- name: Create GitHub App Token | |
id: app-token | |
uses: actions/create-github-app-token@v2 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_KEY }} | |
- id: automerge | |
name: automerge | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
MERGE_LABELS: "gate" | |
MERGE_METHOD: "squash" |