-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
[llvm][docs] Extend docs on GitHub's "squash and merge" #129497
[llvm][docs] Extend docs on GitHub's "squash and merge" #129497
Conversation
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.
Same energy as https://llvm.org/docs/Contributing.html#how-to-submit-a-patch.
Repeating this point is ok, but do have a look and see what the overlap is right now. If we can reduce it maybe by saying "now to contribute via Github see here" then that would be great.
I have a feeling these pages will eventually merge, or the general contributing will delegate any code contribution parts to the GitHub page.
Thanks for the review @DavidSpickett !
Identical energy. Great minds :) My view is that https://llvm.org/docs/Contributing.html should only contain very high level info, e.g.:
And then, https://llvm.org/docs/GitHub.html should contain all the details on using GitHub.
Let me move a few things around. Let me know what you think. |
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.
I think the way I would go about finding what to link and what to duplicate here is to sit down with one of the pages and very literally follow it, adding anything that's missing. To end up with one document, that although long, contains everything a new contributor will need for the first PR. Then I could assess what the scale of changes would be if we were to change these 2 documents.
Which is way more work than what you wanted to do here, so don't do that for this.
With some shuffling these changes are ok but leave it at that so you don't end up in the weeds.
Agreed. But I think that we can simplify this task by basically removing all GitHub-related contend from llvm-project/llvm/docs/Contributing.rst Lines 53 to 182 in cd3acd1
IMHO, it's going to be much easier if we are strict about not distributing GitHub related guidelines across multiple documents. Just food for thought :)
Yes :)
👍🏻 |
This is good, but maybe the PR description needs to be updated since this is now more like moving the existing note into a place where people will actually see it. |
Also CI is failing. |
@ofri-frishman , your recent PR prompted me to write this update. Could you take a look and tell us whether it makes things clearer? Thanks! |
I also added a few more reviewers, mostly folks who have recently touched the update files. Please let me know if there's anyone else that we should include here. Thank you :) |
From what I can tell, many people are still unaware that in LLVM we use the PR summary (rather than PR commit messages) as the message for the final commit to be merged. This is particularly unclear to folks without commit access (folks with commit access can edit the commit message just before merging).
Expand as per David's suggestions
…rge" Re-organise as per David's suggestions
… and merge" Add missing empty line
…"squash and merge" Fix rst
8ccffbb
to
55ad2b6
Compare
Yeah, looks good to me. I should probably go over these documents some more to better familiarize myself with all the aspects of contributing. I added a small comment regarding what I encountered. |
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.
LGTM, thanks for the cleanup!
…tHub's "squash and merge" Fix rst link
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.
Looks good to me, thanks for dealing with this, it will help many people.
From what I’ve observed, some contributors are still unaware that in LLVM, the PR summary - not the commit messages - is used as the final commit message when merging. This is especially unclear to those without commit access, as only users with commit access can edit the commit message before merging. This PR clarifies that policy and consolidates all relevant information into `GitHub.rst`, ensuring it is no longer split between `GitHub.rst` and `Contributing.rst`. Note, a big part of this change is merely moving text between the docs.
From what I’ve observed, some contributors are still unaware that in LLVM, the
PR summary - not the commit messages - is used as the final commit message when
merging. This is especially unclear to those without commit access, as only
users with commit access can edit the commit message before merging.
This PR clarifies that policy and consolidates all relevant information into
GitHub.rst
, ensuring it is no longer split betweenGitHub.rst
andContributing.rst
.Note, a big part of this change is merely moving text between the docs.