Auto Review Bot #116
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
on: | |
workflow_run: | |
workflows: | |
- Auto Review Bot Trigger | |
types: | |
- completed | |
name: Auto Review Bot | |
jobs: | |
auto-review-bot: | |
runs-on: ubuntu-latest | |
name: Run | |
steps: | |
- name: Fetch PR Number | |
uses: dawidd6/action-download-artifact@6765a42d86407a3d532749069ac03705ad82ebc6 | |
with: | |
name: pr-number | |
workflow: auto-review-trigger.yml | |
run_id: ${{ github.event.workflow_run.id }} | |
- name: Save PR Number | |
id: save-pr-number | |
run: echo "::set-output name=pr::$(cat pr-number.txt)" | |
- name: Checkout | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | |
with: | |
repository: ethereum/EIPs # Default, but best to be explicit here | |
ref: master | |
- name: Setup Node.js Environment | |
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 | |
with: | |
node-version: 16 | |
- name: Auto Review Bot | |
id: auto-review-bot | |
uses: ethereum/EIP-Bot@b81356bd8302a99e2d2bcf2bb5d2d983a12f7b8d | |
with: | |
GITHUB-TOKEN: ${{ secrets.TOKEN }} | |
PR_NUMBER: ${{ steps.save-pr-number.outputs.pr }} | |
CORE_EDITORS: '@lightclient,@axic,@gcolvin,@SamWilsn,@Pandapip1' | |
ERC_EDITORS: '@lightclient,@axic,@SamWilsn,@Pandapip1' | |
NETWORKING_EDITORS: '@lightclient,@axic,@SamWilsn' | |
INTERFACE_EDITORS: '@lightclient,@axic,@SamWilsn,@Pandapip1' | |
META_EDITORS: '@lightclient,@axic,@gcolvin,@SamWilsn,@Pandapip1' | |
INFORMATIONAL_EDITORS: '@lightclient,@axic,@gcolvin,@SamWilsn,@Pandapip1' | |
MAINTAINERS: '@alita-moore,@mryalamanchi' | |
- name: Enable Auto-Merge | |
uses: reitermarkus/automerge@a25ea0de41019ad13380d22e01db8f5638f1bcdc | |
with: | |
token: ${{ secrets.TOKEN }} | |
pull-request: ${{ steps.save-pr-number.outputs.pr }} | |
- name: Submit Approval | |
uses: hmarr/auto-approve-action@24ec4c8cc344fe1cdde70ff37e55ace9e848a1d8 | |
with: | |
github-token: ${{ secrets.TOKEN }} | |
pull-request-number: ${{ steps.save-pr-number.outputs.pr }} |