Skip to content

github: add PR and issue message templating#72

Merged
mitchellh merged 1 commit intomitchellh:mainfrom
vancluever:template
Feb 23, 2026
Merged

github: add PR and issue message templating#72
mitchellh merged 1 commit intomitchellh:mainfrom
vancluever:template

Conversation

@vancluever
Copy link
Contributor

@vancluever vancluever commented Feb 22, 2026

This adds the ability to customize the response used for unvouched users when closing pull requests or issues.

For both gh-check-pr and gh-check-issue, the --template-file argument allows the ability to supply an optional template for use. This template follows the expansion rules as defined in Nushell's format pattern.

The default messages for both of these have been moved to a new templates sub-directory and are now templates themselves, serving as an example for both how to template and also the arguments available (although they have also been documented).

template-file has also been added as an argument for the respective workflows.

Closes #50.

@fdncred
Copy link

fdncred commented Feb 22, 2026

format pattern FTW! 🎉 Nice work! Looks cool.

This adds the ability to customize the response used for *unvouched* users
when closing pull requests or issues.

For both "gh-check-pr" and "gh-check-issue", the "--template-file"
argument allows the ability to supply an optional template for use. This
template follows the expansion rules as defined in "format pattern".

The default messages for both of these have been moved to a new
"templates" sub-directory and are now templates themselves, serving as
an example for both how to template and also the arguments available
(although they have also been documented).

"template-file" has also been added as an argument for the respective
workflows.
@vancluever
Copy link
Contributor Author

@fdncred yeah the record pattern worked great aesthetically. Thanks again for the pointers 🙂

Copy link
Owner

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

Awesome thank you!

@mitchellh mitchellh merged commit 0a63681 into mitchellh:main Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support message customization

3 participants