File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments