Skip to content

Commit aaf1696

Browse files
committed
ci: add contributor report workflow for PR quality checks
1 parent 01fc314 commit aaf1696

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Contributor Report
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
check-contributor:
13+
name: "Check contributor"
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 1
21+
22+
- name: Check Contributor Report
23+
uses: jdiegosierra/contributor-report@v1
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
threshold-pr-merge-rate: '0.3'
27+
threshold-account-age: '30'
28+
threshold-positive-reactions: '1'
29+
threshold-negative-reactions: '5'
30+
threshold-merger-diversity: '2'
31+
enable-spam-detection: 'true'
32+
required-metrics: 'prMergeRate,accountAge'
33+
on-fail: comment-and-label
34+
label-name: needs-review
35+
new-account-action: require-review
36+
new-account-threshold-days: '30'
37+
trusted-orgs: TypedDevs

0 commit comments

Comments
 (0)