You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that it synchronises the files in the `members` directory with the team members of the `actors` team.
42
+
Check that it synchronises the files in the `members-test` directory with the team members of the `actors` team.
43
43
44
44
## `retire.sh`
45
45
46
46
This script has external effects and as such needs a bit more care when testing.
47
47
48
48
### Setup (important!)
49
49
50
-
To avoid other users getting pings, ensure that the `members` directory contains only a simulated new user and your own user (simulated to have been added over a year ago), then commit and push it for testing:
50
+
To avoid other users getting pings, ensure that the `members-test` directory contains only simulated new users and your own user (simulated to have been added over a year ago), then commit and push it for testing:
51
51
52
52
```bash
53
53
me=$(gh api /user --jq .login)
54
54
git switch -C "test-$me"
55
-
rm -rf members
56
-
mkdir members
57
-
date +%F >"members/github"
58
-
date --date="1 year ago 1 day ago" +%F >"members/$me"
Check that it would only create a PR for your own user and not the "github" user before running it again with `PROD=1` to actually do it:
85
+
Check that it would only create a PR for your own user and not the "new-committer-1" or "new-committer-2" user before running it again with `PROD=1` to actually do it:
81
86
82
87
```bash
83
-
PROD=1 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members 'yesterday 1 month ago'
0 commit comments