Enable "Merge when ready" on PR #310 #309
Workflow file for this run
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
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". | |
name: auto-merge | |
run-name: 'Enable "Merge when ready" on PR #${{ github.event.number }}' | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
jobs: | |
enable-auto-merge: | |
name: Enable "Merge when ready" for this PR | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
env: | |
CI: "true" | |
if: "!github.event.pull_request.draft" | |
steps: | |
- uses: peter-evans/enable-pull-request-automerge@v2 | |
with: | |
token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | |
pull-request-number: ${{ github.event.number }} | |
merge-method: squash |