-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CONTRIBUTING: Add note about how to commit new maintainers-list.nix entry #248013
CONTRIBUTING: Add note about how to commit new maintainers-list.nix entry #248013
Conversation
this probably relates to #245243 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, beat me to it.
Two remarks:
-
<your github handle>
: justhandle
I think, see this remark - it doesn't have to be a GitHub username (not all GH names are valid attribute anyway, I think?) -
Related: I wonder whether it should be explicit about submitting it as a separate commit. I think it makes sense and I see many reviewers request this, but on the other hand most committers/the GitHub default end up creating a merge commit, thus hiding said commit?
Fixed what you suggested! I will squash this if someone requests it. |
Thanks for spreading awareness, I'd love some reviews for that once it's not a draft anymore btw, feel free to subscribe to it! That PR is still a bit too much in flux though, I don't think it should be blocking this PR here. I can rebase my PR once this one is merged (yeah it's a bit annoying to rebase when things have been moved, but I can manage 😉) |
I think it should be. Also, merge commits don't hide other commits if what you mean by "hide" is something that implies that they somehow aren't in the branch. A merge commit adds a new commit with two parent commits (the latest commit of each branch) that resolves any conflicts. Both parent commits are included in the receiving branch. You might think that merge commits hide other commits since the dates of those commits don't change and the merge commit diff shows the same changes. A merge commit can occur any amount of time after its parents, which can result in a large distance between them. With the velocity of Nixpkgs, that usually means the merge commit and one of the parents have quite a few commits between them. Here's an example: 195975b merges abc3cc0 into master on e04428a. If you want to see an example of a merge commit for a PR with an additional |
On my PR adding myself to Edit: added the PR reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthiasbeyer please rebase.
af085e7
to
8b76c6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the wrong place now, should be in maintainers/README.md
@infinisil: this section is about commit formatting. The organizational details are in the other file. I think it makes sense to have it here, and also use the opportunity to direct people to the new extended page. |
True there are commit conventions in |
I agree, that it would be a better fit in the "How to create pull requests" section, probably as part of bullet 4. Imo it would not hurt to double this small information in both the |
@VuiMuich I'd rather not have it be duplicated. It makes it harder to know which part should be updated, or if you don't know about both parts they could get outdated. I think it's better to improve the linking between the sections.
Step 4 links to the commit conventions here, where there's already information about the commit message formatting, it should be added there :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comma nitpick but lgtm
I can follow that "harder to update" argument very well and as I have stumbled on a bunch of such discrepancies between different docs in the bigger nix eco system. With this in mind, I agree now, to better avoid this duplication. Also putting it as a bullet in the "commit conventions" totally makes sense. |
@matthiasbeyer can you follow up with the changes? Since there seems to be a lot of energy behind this right now, if you lack time the docs team can take this over. |
I was traveling today, I can have a look tomorrow! |
c540df9
to
8e8eec5
Compare
Squashed the comma commit from @cafkafk and added a new one moving the text block to "commit conventions" as per request. I can squash these commits as well, if you like! |
It probably makes most sense to have just a single commit for this, instead of one adding it and another moving it. |
…ntry Signed-off-by: Matthias Beyer <[email protected]>
8e8eec5
to
aa25691
Compare
Not sure if here or in another PR, but it would be good to also document how to add oneself to
Same for removal probably. |
@asymmetric It's mostly there in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this first and follow up afterwards.
In #247972 I found that the contributing file does not say how to add a maintainer, only the manual does (as @ius said in above PR).
Maybe we can add a note here.