Skip to content

Commit d3b00da

Browse files
maintainers: require GitHub handle (documentation) (#437469)
2 parents e4e0aad + c09d16c commit d3b00da

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

maintainers/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ When adding users to [`maintainer-list.nix`](./maintainer-list.nix), the followi
119119

120120
Note: GitHub's "Verified" label does not display the user's full key fingerprint, and should not be used for validating the key matches.
121121

122-
- If the user has specified a `github` account name, ensure they have also specified a `githubId` and verify the two match.
122+
- Ensure that the user has specified a `github` account name and a `githubId` and verify the two match.
123123

124-
Maintainer entries that include a `github` field must also include their `githubId`.
125124
People can and do change their GitHub name frequently, and the ID is used as the official and stable identity of the maintainer.
126125

127126
Given a maintainer entry like this:
@@ -139,7 +138,7 @@ When adding users to [`maintainer-list.nix`](./maintainer-list.nix), the followi
139138

140139
First, make sure that the listed GitHub handle matches the author of the commit.
141140

142-
Then, visit the URL `https://api.github.com/users/ghost` and validate that the `id` field matches the provided `githubId`.
141+
Then, visit the URL `https://api.github.com/user/10137` and validate that the `login` field matches the provided `github` handle.
143142

144143
### Maintainer teams
145144

maintainers/maintainer-list.nix

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
handle = {
55
# Required
66
name = "Your name";
7-
8-
# Optional, but at least one of email, matrix or githubId must be given
9-
email = "address@example.org";
10-
matrix = "@user:example.org";
117
github = "GithubUsername";
128
githubId = your-github-id;
139

10+
# Optional
11+
email = "address@example.org";
12+
matrix = "@user:example.org";
1413
keys = [{
1514
fingerprint = "AAAA BBBB CCCC DDDD EEEE FFFF 0000 1111 2222 3333";
1615
}];
@@ -21,16 +20,16 @@
2120

2221
- `handle` is the handle you are going to use in nixpkgs expressions,
2322
- `name` is a name that people would know and recognize you by,
24-
- `email` is your maintainer email address,
25-
- `matrix` is your Matrix user ID,
2623
- `github` is your GitHub handle (as it appears in the URL of your profile page, `https://github.com/<userhandle>`),
2724
- `githubId` is your GitHub user ID, which can be found at `https://api.github.com/users/<userhandle>`,
25+
- `email` is your maintainer email address,
26+
- `matrix` is your Matrix user ID,
2827
- `keys` is a list of your PGP/GPG key fingerprints.
2928

30-
Specifying a GitHub account ensures that you automatically:
31-
- get invited to the @NixOS/nixpkgs-maintainers team ;
32-
- once you are part of the @NixOS org, OfBorg will request you review
33-
pull requests that modify a package for which you are a maintainer.
29+
Specifying a GitHub account is required, because:
30+
- you will get invited to the @NixOS/nixpkgs-maintainers team;
31+
- once you are part of the @NixOS org, you can be requested for review;
32+
- once you can be requested for review, CI will request you review pull requests that modify a package for which you are a maintainer.
3433

3534
`handle == github` is strongly preferred whenever `github` is an acceptable attribute name and is short and convenient.
3635

0 commit comments

Comments
 (0)