forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) 路 1017 Bytes
/
Copy pathpr-genius-check.yml
File metadata and controls
34 lines (29 loc) 路 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PR Genius Check
on:
pull_request:
types: [opened, synchronize]
permissions:
checks: read
contents: read
pull-requests: read
jobs:
pr-genius:
if: |
!github.event.pull_request.draft &&
!contains(github.event.pull_request.labels.*.name, 'docs-only')
runs-on: ubuntu-latest
steps:
- uses: zsxh1990/pr-genius/.github/actions/pr-genius-check@62098b71272bf38b252d640b5a46a1404b2c8f1c # v1.6.2
id: pr-genius
continue-on-error: true # advisory only: never block merge on tool failure
with:
title: ${{ github.event.pull_request.title }}
repo: ${{ github.repository }}
body: ${{ github.event.pull_request.body }}
- uses: actions/checkout@v4
- name: Output enhanced PR Genius result
if: always()
env:
GITHUB_TOKEN: ${{ github.token }}
TIER: ${{ steps.pr-genius.outputs.tier }}
run: python3 scripts/pr_genius_report.py --event "$GITHUB_EVENT_PATH" --risk "$TIER"