Skip to content

Simplify pull-request template#15924

Queued
jakelishman wants to merge 1 commit intoQiskit:mainfrom
jakelishman:simpler-pr-advice
Queued

Simplify pull-request template#15924
jakelishman wants to merge 1 commit intoQiskit:mainfrom
jakelishman:simpler-pr-advice

Conversation

@jakelishman
Copy link
Copy Markdown
Member

The current template is quite wordy and hard to read. We have a properly rendered checklist in CONTRIBUTING.md, so it's clearest just to link to that; I'm not convinced that the existing comment actually drives user behaviour to do what we want, so I don't think we'll lose out by putting it a link away.

I deleted the "summary" and "details and comments" section headings because they're usually below the fold of the text area anyway, and just busy-work to delete for PRs that come with a good commit message.

One thing we definitely do want in all PR descriptions, and is not possible for maintainers to manually do themselves, is to include a disclosure of the AI/LLM tooling used. This new template pre-populates that with tickboxes, including for the negative case, which should at least make it obvious to reviewers if all the information is present.

Summary

Details and comments

The current template is quite wordy and hard to read.  We have a
properly rendered checklist in `CONTRIBUTING.md`, so it's clearest just
to link to that; I'm not convinced that the existing comment actually
drives user behaviour to do what we want, so I don't think we'll lose
out by putting it a link away.

I deleted the "summary" and "details and comments" section headings
because they're usually below the fold of the text area anyway, and just
busy-work to delete for PRs that come with a good commit message.

One thing we definitely _do_ want in all PR descriptions, and is not
possible for maintainers to manually do themselves, is to include a
disclosure of the AI/LLM tooling used.  This new template pre-populates
that with tickboxes, including for the negative case, which should at
least make it obvious to reviewers if all the information is present.
@jakelishman jakelishman requested a review from a team as a code owner March 31, 2026 12:21
@jakelishman jakelishman added the Changelog: None Do not include in the GitHub Release changelog. label Mar 31, 2026
@qiskit-bot
Copy link
Copy Markdown
Collaborator

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@Cryoris
Copy link
Copy Markdown
Collaborator

Cryoris commented Mar 31, 2026

+1 on removing the wordy comment header, but I'm actually using the summary and details bits more often than not -- but I'm obeying the majority opinion here 🙂

@jakelishman
Copy link
Copy Markdown
Member Author

I didn't mean to imply that you shouldn't put in a summary/detail, just that they don't need to go under a specific heading - the text just needs to exist in any form.

Comment on lines -9 to -11
- [ ] I have added the tests to cover my changes.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the CONTRIBUTING document.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really get rid of this part? I mean. I know some contributions don't require us to write tests, or update docs, but it is a good reminder to have.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to keep them and also mention release notes:
I have updated the documentation and release notes accordingly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and perhaps also add another item on format checking?
(it seems that most comments that I write deal with failing tests / missing release notes / format errors...) - maybe we should use LLMs to automate this?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The question is how detailed we want to be here: the checklist for a PR is already in the linked contributing guide, so we don't have to duplicate it here. I think I'd be in favor of trying a minimal template and explicitly point out the guide. If we realize it doesn't work and PR description drops, we can still change it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but I'm afraid that human users don't actually read the guidelines (and I'm not sure about LLMs ;)
Perhaps we can use some automated Bot that will comment on missing CLA / tests / release notes / formatting issues...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not every PR needs tests or release notes -- and we do have a CLA bot and formatting issues are caught by CI 🙂

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd be in favor of trying a minimal template and explicitly point out the guide. If we realize it doesn't work and PR description drops, we can still change it

Shall we try this for now? I'm happy to do this and then change again if we don't like it.

Copy link
Copy Markdown
Contributor

@raynelfss raynelfss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the discussion above about my comments. I don't feel strongly about anything else in this template.

@jakelishman jakelishman added this pull request to the merge queue Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants