Update changelog for recent merges #322
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: Auto-Assign PRs | |
| on: | |
| pull_request_target: | |
| types: [opened, ready_for_review, reopened, synchronize] | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| auto-assign: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign and request review | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const { owner, repo } = context.repo; | |
| const pr = context.payload.pull_request; | |
| const login = 'barneyonline'; | |
| // Assign to self (idempotent) | |
| await github.rest.issues.addAssignees({ | |
| owner, repo, issue_number: pr.number, assignees: [login], | |
| }).catch(() => {}); | |
| // Request review from self (no-op if author is same) | |
| await github.rest.pulls.requestReviewers({ | |
| owner, repo, pull_number: pr.number, reviewers: [login], | |
| }).catch(() => {}); |