Skip to content

Commit 81a8973

Browse files
authored
Merge pull request #2 from NixOS/wip/jtojnar/api-commands
scripts/retire: Include commands in retirement comment
2 parents 1457939 + bbf96a7 commit 81a8973

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/retire.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,18 @@ for login in *; do
4545
echo "One month has passed, to this PR should now be merged and implemented by:"
4646
fi
4747
echo "- Adding @$login to the [Retired Nixpkgs Contributors team](https://github.com/orgs/NixOS/teams/retired-nixpkgs-contributors)"
48+
echo ' ```sh'
49+
echo ' gh api \'
50+
echo ' --method PUT \'
51+
echo " '/orgs/NixOS/teams/retired-nixpkgs-contributors/memberships/$login' \\"
52+
echo ' -f role=member'
53+
echo ' ```'
4854
echo "- Removing @$login from the [Nixpkgs Committers team](https://github.com/orgs/NixOS/teams/nixpkgs-committers)"
55+
echo ' ```sh'
56+
echo ' gh api \'
57+
echo ' --method DELETE \'
58+
echo " '/orgs/NixOS/teams/nixpkgs-committers/memberships/$login'"
59+
echo ' ```'
4960
} | gh api --method POST /repos/"$ORG"/"$MEMBER_REPO"/issues/"$prNumber"/comments -F "body=@-" >/dev/null
5061
else
5162
echo "$login has a retirement PR pending"

0 commit comments

Comments
 (0)