mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
workflows/labels: manage "first-time contribution" label
This is currently managed with yet another bot, but we don't need to -
this fits into our workflow nicely.
(cherry picked from commit 28f3b92403)
This commit is contained in:
committed by
github-actions[bot]
parent
6346ef5210
commit
29cc462120
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
@@ -234,6 +234,8 @@ jobs:
|
||||
'12.approvals: 2': approvals.size == 2,
|
||||
'12.approvals: 3+': approvals.size >= 3,
|
||||
'12.approved-by: package-maintainer': Array.from(maintainers).some(m => approvals.has(m)),
|
||||
'12.first-time contribution':
|
||||
[ 'NONE', 'FIRST_TIMER', 'FIRST_TIME_CONTRIBUTOR' ].includes(pull_request.author_association),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user