mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 01:47:55 +00:00
9ca267328e
This version includes paritytech/review-bot#97 which can assign reviewers. It will be the final step required to replace PRCR. It also moves the secrets to the environment master.
33 lines
952 B
YAML
33 lines
952 B
YAML
name: Review Bot
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- Review-Trigger
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
review-approvals:
|
|
runs-on: ubuntu-latest
|
|
environment: master
|
|
steps:
|
|
- name: Extract content of artifact
|
|
id: number
|
|
uses: Bullrich/extract-text-from-artifact@v1.0.0
|
|
with:
|
|
artifact-name: pr_number
|
|
- name: Generate token
|
|
id: app_token
|
|
uses: tibdex/github-app-token@v1
|
|
with:
|
|
app_id: ${{ secrets.REVIEW_APP_ID }}
|
|
private_key: ${{ secrets.REVIEW_APP_KEY }}
|
|
- name: "Evaluates PR reviews and assigns reviewers"
|
|
uses: paritytech/review-bot@v2.2.0
|
|
with:
|
|
repo-token: ${{ steps.app_token.outputs.token }}
|
|
team-token: ${{ steps.app_token.outputs.token }}
|
|
checks-token: ${{ steps.app_token.outputs.token }}
|
|
pr-number: ${{ steps.number.outputs.content }}
|
|
request-reviewers: true
|