ee389beb8c
- Add 72 rebrand workflow files (polkadot→pezkuwi, substrate→bizinikiwi, cumulus→pezcumulus) - Add GitHub actions, issue templates, and configs - Removed unnecessary workflows (fork-sync, gitspiegel, upstream-tracker, sync-templates, backport) - Renamed zombienet test files to match new naming convention
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
name: Review Bot
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- Review-Trigger
|
|
types:
|
|
- completed
|
|
workflow_dispatch:
|
|
inputs:
|
|
pr-number:
|
|
description: "Number of the PR to evaluate"
|
|
required: true
|
|
type: number
|
|
|
|
jobs:
|
|
review-approvals:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate token
|
|
id: app_token
|
|
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
|
|
with:
|
|
app-id: ${{ secrets.REVIEW_APP_ID }}
|
|
private-key: ${{ secrets.REVIEW_APP_KEY }}
|
|
- name: Extract content of artifact
|
|
if: ${{ !inputs.pr-number }}
|
|
id: number
|
|
uses: Bullrich/extract-text-from-artifact@28b4a438a07226f4e4e19f625354bbe3e745a29e # v1.0.1
|
|
with:
|
|
artifact-name: pr_number
|
|
# DISABLED: Review bot requires pezkuwichain GitHub App
|
|
# - name: "Evaluates PR reviews and assigns reviewers"
|
|
# uses: pezkuwichain/review-bot@9a5828019b78fcc2a7d851ca9797d810bcde95ea # v2.7.2
|
|
# with:
|
|
# repo-token: ${{ steps.app_token.outputs.token }}
|
|
# team-token: ${{ steps.app_token.outputs.token }}
|
|
# checks-token: ${{ steps.app_token.outputs.token }}
|
|
# pr-number: ${{ inputs.pr-number || steps.number.outputs.content }}
|
|
# request-reviewers: true
|
|
- name: "Review bot disabled"
|
|
run: echo "Review bot is disabled - requires pezkuwichain GitHub App"
|
|
- name: Log payload
|
|
if: ${{ failure() || runner.debug }}
|
|
run: echo "::debug::$payload"
|
|
env:
|
|
payload: ${{ toJson(github.event) }}
|