circt/.github/workflows/assign-reviewers.yml

28 lines
802 B
YAML

name: "Request review from code owner"
on:
pull_request_target:
branches: [ main ]
jobs:
# Automatically request reviews from the code owner identified in a set of
# JSON files in codeowners/.
request_reviewer:
name: "Request review from code owner"
runs-on: ubuntu-latest
steps:
- name: Get CIRCT
uses: actions/checkout@v2
with:
submodules: 'false'
- name: apply-herald-rules
id: herald
uses: gagoar/use-herald-action@master
continue-on-error: true
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
rulesLocation: codeowners/*.json
DEBUG: '*'
# Output the decisions
- name: Store response payload to file
run: echo '${{ steps.herald.outputs.appliedRules }}'