-
Notifications
You must be signed in to change notification settings - Fork 59
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
Update PR template #2950
Comments
Idea for a PR template Type of changesWhat types of changes does your code introduce to OpenKAT? Put an 'x' in the boxes that apply.
About this PRDescriptionWhy have you created this PR? BugfixIn case of a bugfix, please fill in the following details. If not, please go to “Solutions” and continue there. Expected behavior Actual behavior To reproduce
Screenshots and logs of the problem SolutionsPossible solutionsDescribe possible ways to solve the problem. What other options have you considered? Why would those options (not) work? Chosen solutionWhich solution have you chosen? Changes Demo of your solutionScreenshot or video of your working solution. IssuesClosesList of tickets that are closed with your solution. OpensList of follow up tickets relating to your problem. For example tech depth tickets. |
I'd love a QA section with 'QA notes` such as #2709 |
Ofcourse! How could I forget the whole checklist section... Whoops. The checks might need an update as well. Does anyone have suggestions? New version: Type of changesWhat types of changes does your code introduce to OpenKAT? Put an 'x' in the boxes that apply.
About this PRDescriptionWhy have you created this PR? BugfixIn case of a bugfix, please fill in the following details. If not, please go to “Solutions” and continue there. Expected behavior Actual behavior To reproduce
Screenshots and logs of the problem SolutionsPossible solutionsDescribe possible ways to solve the problem. What other options have you considered? Why would those options (not) work? Chosen solutionWhich solution have you chosen? Changes Demo of your solutionScreenshot or video of your working solution. IssuesClosesList of tickets that are closed with your solution. OpensList of follow up tickets relating to your problem. For example tech depth tickets. Checklist for the developerCode Checklist
Communication
Checklist for code reviewers:Copy-paste the checklist from the docs/source/templates folder into your comment. Checklist for QA:Copy-paste the checklist from the docs/source/templates folder into your comment. |
Imho this template is too big for a PR. I believe most of this should already be handled by the corresponding issue.
This section is redundant, GitHub has introduced labels for these. Branch names should also be a good indication for the type of PR (although there isn't a written branch name convention yet).
This should already be covered by the issue (for both feature requests and bugs) the PR is referencing to.
There's a bug fix section only, while earlier you mention also different types of changes, which makes this section inconsistent. Also everything in this section should already be included in the bug issue template (except for the logs, which could be added next to screenshots)
In the current PR template, this should already be included in the "changes" section.
Should be already mentioned in the feature request template.
GitHub references this PR automatically in the timeline if this PR gets mentioned in another ticket. Although it doesn't really hurt to still have this section. |
I get your point, most of this should already be covered in the issue. But what if a PR is created without an issue? I know it isn't supposed to happen, but it does happen sometimes. That's why @stephanie0x00 created the first version of the new PR template (from which I copied most of these sections). She said that sometimes they were missing context. What would be a good solution here? To never allow a PR without an issue anymore? What do you guys think? And @ammar92, what DO you want to see in a PR template? What is useful to you? |
Thanks for your input. That's a good point indeed. While we generally prefer to have an issue for every PR, we do allow some exceptions, such as package updates or PRs coming from contributors. Imho the current PR template should be sufficient, and in cases where the context is unclear, this should lead to questions and discussion.
See my point above.
I want to see good PRs and issues, regardless of any template. This requires a fair amount of effort by the author to communicate effectively. In my experience having more questions, form inputs and other means of questionnaire does improve the consistency, but it doesn't necessarily improve the quality. We still see unnecessary boilerplate (e.g. |
Alright, you've got some good points there! If the current PR template doesn't cause any problems for you, I think it might not be necessary to change it. (But we can think about updating the checkbox.) But ofcourse it depends on what the other reviewers think. |
During the discussion meeting, we've concluded to leave the PR template the way it is and just add two things:
It would then look something like this: ChangesPlease describe the essence of this PR in a few sentences. Mention any breaking changes or required configuration steps. Issue linkYou have to create an issue to link to this PR. If this really is not possible, write a very detailed description here and add this PR to the project board directly.. Please add the link to the issue after "Closes". Closes ... DemoPlease add some proof in the form of screenshots or screen recordings to show (off) new functionality, if there are interesting new features for end-users. QA notesPlease add some information for QA on how to test the newly created code. Code Checklist
Communication
Checklist for code reviewers:Copy-paste the checklist from the docs/source/templates folder into your comment. Checklist for QA:Copy-paste the checklist from the docs/source/templates folder into your comment. |
Besided this, we have to think about the "Code checklist" section. It's a bit outdated. Any ideas for useful checks? |
Updated the code checklist in the PR. (Approved by @ammar92 and @stephanie0x00) As discussed before, people who do the review have to make sure all checkboxes are checked. If not, a ticket cannot be merged. The reviewers have to check this and tell the developers if something is missing. ChangesPlease describe the essence of this PR in a few sentences. Mention any breaking changes or required configuration steps. Issue linkYou have to create an issue to link to this PR. If this really is not possible, write a very detailed description here and add this PR to the project board directly.. Please add the link to the issue after "Closes". Closes ... DemoPlease add some proof in the form of screenshots or screen recordings to show (off) new functionality, if there are interesting new features for end-users. QA notesPlease add some information for QA on how to test the newly created code. Code Checklist
Checklist for code reviewers:Copy-paste the checklist from the docs/source/templates folder into your comment. Checklist for QA:Copy-paste the checklist from the docs/source/templates folder into your comment. |
This ticket is part of #2886.
Is your feature request related to a problem? Please describe.
The PR template we're currently using is sometimes lacking information which is relevant for the reviewers/QA'ers.
Describe the solution you'd like
Update te current PR template.
To think about
We are also designing a new job request template and a bug report template. The template for PRs repeats some of the same sections. We need to think about how to minimize the effort for the creator of the PR, while making the PR as clear as possible for the reviewer.
The sections cannot be omitted from the PR template (with only a reference to the problem) because a PR is sometimes created separately from a ticket. One solution may be to copy-paste it from the ticket.
The text was updated successfully, but these errors were encountered: