-
Notifications
You must be signed in to change notification settings - Fork 160
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
Create checklist for PRs and issues #2721
Comments
I think that looks like a good guide. My temptation would be stick with backport-to-4.9 for now, we can always move to just backport-to-stable when we need to change for 4.10 anyway (or realise we really care about the difference at that point, if for some reason we do). I would be tempted to put this into the PR box if we can (I realise we used to have a big block of text for issues, which I worried would put people off, but I think expecting people submitting PRs to think about what they are doing is much more reasonable). One thing I sometimes worry about / find arkward is running clang-format on 2 or 3 commits, once I have realised I've forgotten. If we were happy with a single clang-format commit at the end of a PR, that would certainly make me happy as it would make my life easier :) |
I remember pull-request templates to be awkward and getting in the way, but pull-requests were much less cumbersome and complicated then. Now, forgetting things on a checklist is even more awkward and irritating, because I have to go back and change things/rebase/etc, but to be honest, a PR template will not change that (for me), I am useless like that. My idea was that I have a printed off piece of paper on my desk that I have to thumb through. Obviously that is something I can do myself and share (or not). I'd like a mention of "did you consider adding tests". |
@fingolfin thank you. I don't see a problem with restoring a PR template. Even if it will be deleted, it draws attention to a whole variety of labels (which sometimes we may do not even suspect to exist, because there are no notifications for label change), and provides a handy reminder for clang-format. I think the more rarely PR authors are submitting PRs, the more useful such a reminder could be. One should mention that "Add relevant labels" only applies to those having rights to add labels, to avoid confusing PR authors who are not in the gap-system organisation. |
A PR template may have a checklist not only for a submitter, but also, importantly, for a reviewer. E.g. what to check, what to do with labels, etc. |
During a recent discussion, there was interest in
and I volunteered to create one. But now I wonder the following:
I'd appreciate comments, esp. by the people who were at the discussion (@alex-konovalov @ChrisJefferson @frankluebeck @markuspf @sebasguts @stevelinton @ThomasBreuer) but of course also by everybody else.
As to the content of the checklist, here is a first draft (the label names are currently being changed by me, but the gist should be clear enough):
checklist draft
When submitting a new PR, please take care of the following:
Add relevant labels:
release notes: not needed
orrelease notes: to be added
;bug
orenhancement
ornew feature
;backport-to-4.9
label;build system
,documentation
,kernel
,library
,tests
;If your code contains kernel C code, run
clang-format
on it; the simplest way is to usegit clang-format
, e.g. like this (don't forget to commit the resulting changes)Thoughts on the checklist draft:
backport-to-4.10
in the future. Or we rename that label tobackport-to-stable
(then some queries on the Wiki using it need to be updated).The text was updated successfully, but these errors were encountered: