Skip to content
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

PR Template: Suggest linking the issue #68924

Merged
merged 4 commits into from
Jan 29, 2025
Merged

Conversation

Mamaduka
Copy link
Member

What?

Update the PR template and recommend linking the issue using a reserved keyword.

Why?

Often, PRs aren't linked to their corresponding issue or incorrectly reference them.

Testing Instructions

None.

@Mamaduka Mamaduka added the [Type] Project Management Meta-issues related to project management of Gutenberg label Jan 28, 2025
@Mamaduka Mamaduka self-assigned this Jan 28, 2025
@Mamaduka Mamaduka requested a review from desrosj as a code owner January 28, 2025 13:08
@Mamaduka Mamaduka requested review from priethor and t-hamano January 28, 2025 13:08
Copy link

github-actions bot commented Jan 28, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: stokesman <presstoke@git.wordpress.org>
Co-authored-by: priethor <priethor@git.wordpress.org>
Co-authored-by: afercia <afercia@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Co-authored-by: Mitchell Austin <mr.fye@oneandthesame.net>
Copy link
Contributor

@priethor priethor left a comment

Choose a reason for hiding this comment

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

Yes, please, this will help standardize how to provide context to PRs and minimize PRs without issue.

.github/PULL_REQUEST_TEMPLATE.md Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 29, 2025

Flaky tests detected in f61804a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/13027760486
📝 Reported issues:

@afercia
Copy link
Contributor

afercia commented Jan 29, 2025

Love this change.

It should be good to specify in the instructions that linking to an issue is encouraged, although not strictly necessary. There can also be cases where the PR doesn't close an issue but is a "Follow up to #XXXX".

Right, and sometimes it could be a PR that addresses only a part of the issue, pending other incremental PRs, so that it'snot always a 'close'. What about suggesting a few keywords e.g.:

<!-- Link this PR to its associated issue with an appropriate keyword: Closes, See, Follow up to, etc. -->

And maybe link to the list o fkeywords?

linking to an issue is encouraged, although not strictly necessary

The contributing guidelines of this project require any non-trivial PRs to be preceded by an issue to allow discussion. I would love to see this at least mentioned or linked to in the PR template. See: https://github.com/WordPress/gutenberg/blob/trunk/docs/contributors/repository-management.md#pull-requests

Non-trivial pull requests should be preceded by a related issue that defines the problem to solve and allows for discussion of the most appropriate solution before actually writing code.

@Mamaduka
Copy link
Member Author

Thank you, @afercia! I've updated the text to list possible keywords.

The template already links to the contribution guidelines. Since these templates are for new contributors, I don't think we want to overload them with information.

The contributing guidelines of this project require any non-trivial PRs to be preceded by an issue to allow discussion.

While I mostly agree here, defining "non-trivial" PR is complicated. When reviewing PRs, I'll usually comment with a link to the docs when this is the case.

This is also true for PRs with an attached issue, but the solution isn't clear, or adding a feature that might be better suited for a plugin.

Copy link
Contributor

@priethor priethor left a comment

Choose a reason for hiding this comment

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

The suggestions are clear and varied while still suggesting closing an issue by default. I don't think we should overcomplicate it and ship this as a first step.

@Mamaduka
Copy link
Member Author

Thanks for the input, everyone! 🙇

@Mamaduka Mamaduka merged commit 266c11b into trunk Jan 29, 2025
64 checks passed
@Mamaduka Mamaduka deleted the update/pr-template-issue-link branch January 29, 2025 15:59
@github-actions github-actions bot added this to the Gutenberg 20.3 milestone Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Project Management Meta-issues related to project management of Gutenberg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants