# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". name: auto-approve on: pull_request_target: types: - labeled - opened - synchronize - reopened - ready_for_review jobs: approve: runs-on: ubuntu-latest permissions: pull-requests: write if: contains(github.event.pull_request.labels.*.name, 'auto-approve') && (github.event.pull_request.user.login == 'gammarers-projen-upgrade-bot[bot]' || github.event.pull_request.user.login == 'yicr') steps: - id: auto_08f238e2 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} run: gh pr review --approve "$PR_NUMBER" --repo "$GH_REPO"