Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The following sequence tests all code paths:
PROD=1 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members 'yesterday 1 month ago'
```

Check that it created the PR appropriately.
Check that it created the PR appropriately, including assigning the "retirement" label.
You can undo this step by closing the PR.
3. Run it again to simulate CI running again later:
```bash
Expand Down
11 changes: 9 additions & 2 deletions scripts/retire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ for login in *; do
trace git rm "$login"
trace git commit -m "Automatic retirement of @$login"
effect git push -f -u origin "$branchName"
{
prNumber=$({
echo "This is an automated PR to retire @$login as a Nixpkgs committers due to not using their commit access for 1 year."
echo ""
echo "Make a comment with your motivation to keep commit access, otherwise this PR will be merged and implemented in 1 month."
Expand All @@ -134,7 +134,14 @@ for login in *; do
-F "body=@-" \
-f "head=$ORG:$branchName" \
-f "base=$mainBranch" \
-F "draft=true" >/dev/null
-F "draft=true" \
--jq .number
)

effect gh api \
--method POST \
/repos/"$ORG"/"$MEMBER_REPO"/issues/"$prNumber"/labels \
-f "labels[]=retirement" >/dev/null
)
else
log "$login is active with $activityCount activities"
Expand Down