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
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,16 @@ whose members have write access to [Nixpkgs](https://github.com/nixos/nixpkgs).
6
6
7
7
The [Nixpkgs commit delegators](https://github.com/orgs/NixOS/teams/commit-bit-delegation)
8
8
maintain the member list in this repository.
9
-
While it's in principle possible to request Nixpkgs commit permissions by creating a PR,
10
-
please nominate yourself in [this issue](https://github.com/NixOS/nixpkgs/issues/321665) instead.
9
+
10
+
## Nominations
11
+
12
+
To nominate yourself or somebody else:
13
+
1. Create an empty `members/<GITHUB_HANDLE>` file ([direct GitHub link](/../../new/main/members?filename=%3CGITHUB_HANDLE%3E))
14
+
2. Create a PR with the change with the motivation in the PR description
15
+
16
+
Such nominations are also automatically announced in [this issue](https://github.com/NixOS/nixpkgs/issues/999999), which you can subscribe to for updates.
17
+
18
+
You can see all current nominations [here](/../../issues?q=state%3Aopen%20label%3Anomination)
Copy file name to clipboardExpand all lines: scripts/README.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,43 @@ scripts/sync.sh infinisil-test-org actors members
41
41
42
42
Check that it synchronises the files in the `members` directory with the team members of the `actors` team.
43
43
44
-
## `retire.sh`
44
+
## Testing `nomination.sh`
45
+
46
+
This script does not depend on the current repository, but has some external effects.
47
+
For testing, we'll use [PR #33](https://github.com/infinisil-test-org/nixpkgs-committers/pull/33) and [issue #30](https://github.com/infinisil-test-org/nixpkgs-committers/issues/30).
48
+
49
+
To test:
50
+
1. Make sure that the nomination label is not present on the PR
51
+
1. Run the script while simulating that a non-nomination PR was opened:
52
+
```bash
53
+
scripts/nomination.sh members infinisil-test-org/nixpkgs-committers 33 "Removed ghost" 30 <<<"removed members/ghost"
54
+
```
55
+
56
+
Ensure that it exits with 0 and wouldn't run any effects.
57
+
1. Run the script while simulating that multiple users were nominated together:
58
+
```bash
59
+
scripts/nomination.sh members infinisil-test-org/nixpkgs-committers 33 "Added foo and bar" 30 <<<"removed members/foo"$'\n'"added members/bar"
60
+
```
61
+
62
+
Ensure that it exits with non-0 and wouldn't run any effects.
63
+
1. Run the script while simulating that the nominated user is not mentioned in the title
64
+
```bash
65
+
scripts/nomination.sh members infinisil-test-org/nixpkgs-committers 33 "Added somebody" 30 <<<"added members/ghost"
66
+
```
67
+
68
+
Ensure that it exits with non-0 and wouldn't run any effects.
69
+
1. Run the script simulating a successful nomination
70
+
```bash
71
+
scripts/nomination.sh members infinisil-test-org/nixpkgs-committers 33 "Added ghost" 30 <<<"added members/ghost"
72
+
```
73
+
74
+
Ensure that it exits with 0 and would run effects to label the PR and post a comment in the issue.
75
+
1. Rerun with effects
76
+
```bash
77
+
PROD=1 scripts/nomination.sh members infinisil-test-org/nixpkgs-committers 33 "Added ghost" 30 <<<"added members/ghost"
78
+
```
79
+
80
+
## Testing `retire.sh`
45
81
46
82
This script has external effects and as such needs a bit more care when testing.
0 commit comments