-
Notifications
You must be signed in to change notification settings - Fork 60.6k
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
Better auto-closing issues in PR template #35979
Comments
@Michael21107 Good to hear from you again! 💛 Thank you so much for opening this issue. Just to make sure I'm following you, I'll do a quick recap:
Was written like this:
instead of like this:
what would you think of modifying line 7 of the PULL_REQUEST_TEMPLATE.md to read something like this? 🤔
This would hopefully prevent folks from accidentally linking their corresponding issue on a different line, and keep the |
I think that's good. I'd also remove the empty line between the comment and the ''closes'' line as that is IMO encouraging people to use the empty line, and not continue right after |
Awesome! Let me loop in one of our technical writers @subatoi to get his thoughts on the potential changes to the PULL_REQUEST_TEMPLATE.md 💛 |
👋 Hi, thanks for the ping. I think all that sounds fine—I would recommend using a placeholder that follows our guidelines for placeholder format and which is enclosed in backticks to ensure it's parsed as we'd like: Closes: Happy to open this up. |
This comment was marked as spam.
This comment was marked as spam.
Thank you for the guidance @subatoi! ✨ @Michael21107 Would you be willing to open up a PR for this? 💛 |
On it. @subatoi Could the text say |
In hindsight my guidance was a little out of date: here's our formalised placeholder guidance https://docs.github.com/en/contributing/style-guide-and-content-model/style-guide#placeholders So to answer your question, I would say yes, but with a small further tweak (uppercase/kebab-case, but no
|
@Michael21107 Howdy! An internal PR on which you were added as a co-committer will be merged shortly 💛 We decided to opt for using Thank you again for helping us improve this template! 🙇 |
Code of Conduct
What article on docs.github.com is affected?
N/A
What part(s) of the article would you like to see updated?
N/A
Additional information
The PULL_REQUEST_TEMPLATE.md is currently set up so that the issue linked, that the PR is supposed to close, is under ''Closes:''. This makes it, so the issue, although linked, isn't automatically assigned as one that is closed upon merging the PR. I think it would be nice to make it ''natural'', to link such an issue somewhere where it is auto-assigned as a ''closing'' one.
Example of a PR, that didn't trigger the
closes
automation of a linked issue upon merging.The text was updated successfully, but these errors were encountered: