@@ -76,7 +76,7 @@ The following sequence tests all code paths:
7676 ```
7777
7878 Check that no PR would be opened.
79- 2 . Run the script with the ` empty ` repo argument to simulate CI running with inactive users:
79+ 1 . Run the script with the ` empty ` repo argument to simulate CI running with inactive users:
8080
8181 ``` bash
8282 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members-test ' yesterday 1 month ago' now
@@ -90,27 +90,27 @@ The following sequence tests all code paths:
9090
9191 Check that it created the PR appropriately, including assigning the "retirement" label.
9292 You can undo this step by closing the PR.
93- 3 . Run it again to simulate CI running again later:
93+ 1 . Run it again to simulate CI running again later:
9494 ``` bash
9595 PROD=1 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members-test ' yesterday 1 month ago' now
9696 ```
9797 Check that no other PR is opened.
98- 4 . Run it again with ` now ` as the notice cutoff date to simulate the time interval passing:
98+ 1 . Run it again with ` now ` as the notice cutoff date to simulate the time interval passing:
9999 ``` bash
100100 PROD=1 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members-test now now
101101 ```
102102 Check that it undrafted the previous PR and posted an appropriate comment.
103- 5 . Run it again to simulate CI running again later:
103+ 1 . Run it again to simulate CI running again later:
104104 ``` bash
105105 PROD=1 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members-test now now
106106 ```
107107 Check that no other PR is opened.
108- 6 . Reset by marking the PR as a draft again, then run it again with the ` active ` repo argument to simulate activity during the time interval:
108+ 1 . Reset by marking the PR as a draft again, then run it again with the ` active ` repo argument to simulate activity during the time interval:
109109 ``` bash
110110 PROD=1 scripts/retire.sh infinisil-test-org active nixpkgs-committers members-test now now
111111 ```
112112 Check that it gets undrafted with a comment listing the new activity.
113- 8 . Close the PR, then run the script again with no activity and for an earlier close cutoff, simulating that the retirement was delayed:
113+ 1 . Close the PR, then run the script again with no activity and for an earlier close cutoff, simulating that the retirement was delayed:
114114 ``` bash
115115 PROD=1 scripts/retire.sh infinisil-test-org empty nixpkgs-committers members-test now ' 1 day ago'
116116 ```
0 commit comments