Skip to content

github: Switch to yaml issue templates - #27025

Merged
glozow merged 1 commit into
bitcoin:masterfrom
willcl-ark:yaml-issue-templates
Mar 9, 2023
Merged

glozow merged 1 commit into
bitcoin:masterfrom
willcl-ark:yaml-issue-templates

Conversation

@willcl-ark

@willcl-ark willcl-ark commented Feb 2, 2023 •

Copy link
Copy Markdown
Member

The new YAML templates provide more flexibility and can be designed to extract more information from users when submitting issues, avoiding initial back-and-forth when reports do not include enough background information to begin with.

Key differences:

  • YAML format
  • Allows us to require responses to certain questions
  • Not currently compatible with GitLab (.md only)

This does keep the "Blank Issue" option at the bottom.

Testing this must be done with the master branch of the repo, which is slightly annoying for this repo. I have therefore pushed this to my own fork so that you can see the new templates, along with how the output is rendered in newly-created issues:

github.com/willcl-ark/bitcoin/issues

I did make some minor changes to some of the template wording, but this change could also be a good time to add/remove additional questions.

This seems like a net-positive for me, setting aside the issue that if we ever migrated away from GitHub these might have to be ported back to *.md (or something else), but that seems easy-enough that this change would be worth it.

Curious to know what others think of this, and whether they would suggest adding any other questions to any of the templates as part of this update?

@DrahtBot

DrahtBot commented Feb 2, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK achow101, glozow
Concept ACK fanquake, pinheadmz, kouloumos, hebasto

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@willcl-ark
willcl-ark force-pushed the yaml-issue-templates branch from 7a3b1ba to 2023697 Compare February 2, 2023 11:57
@fanquake

fanquake commented Feb 2, 2023

Copy link
Copy Markdown
Member

Concept ACK

@willcl-ark
willcl-ark force-pushed the yaml-issue-templates branch from 2023697 to b1f20ba Compare February 2, 2023 12:28
Comment thread .github/ISSUE_TEMPLATE/config.yaml Resolved
@willcl-ark
willcl-ark force-pushed the yaml-issue-templates branch 2 times, most recently from 6d67ee2 to b18032c Compare February 3, 2023 13:35
@fanquake

fanquake commented Feb 8, 2023

Copy link
Copy Markdown
Member

What are the next steps here? Undraft?

@pinheadmz

Copy link
Copy Markdown
Member

concept ACK

great work! I can't think of anything to add or change

@willcl-ark
willcl-ark marked this pull request as ready for review February 8, 2023 19:45
@willcl-ark

Copy link
Copy Markdown
Member Author

I suppose one other question is whether having more/mandatory questions will put people off submitting issues, although as mentioned in OP there is still the "blank issue" option available (in small writing) at the bottom of the issues page...

Comment thread .github/ISSUE_TEMPLATE/bug.yml Resolved
@fanquake

Copy link
Copy Markdown
Member

I suppose one other question is whether having more/mandatory questions will put people off submitting issues,

If people can't be bothered to supply what we think is the minimum required information, then we will likely be unable to debug anything anyways. However, sometimes (fixable/informative) issues do come in the form of a randonly pasted debug log or similar. So if there is still an option for someone to dump something, I think this is ok.

@achow101 @glozow @MarcoFalke @hebasto any thoughts here?

@willcl-ark

Copy link
Copy Markdown
Member Author

So if there is still an option for someone to dump something, I think this is ok.

It would also be possible to add a new BLANK issue template so that the blank issue template gets a big green button like the others (rather than needing to click the small hyperlink at the bottom), but IMO this would slightly defeat the point of requiring more info.

@achow101 achow101 left a comment

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.

Concept ACK

It would also be possible to add a new BLANK issue template so that the blank issue template gets a big green button like the others (rather than needing to click the small hyperlink at the bottom), but IMO this would slightly defeat the point of requiring more info.

I think the link at the bottom is fine. The people who would use it can probably figure it out.

Comment thread .github/ISSUE_TEMPLATE/config.yml Outdated
Comment on lines 3 to 5

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.

There's already a big green button for the security policy, so I don't think we need to add a second one manually.

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.

This config option enables the Bitcoin Core Security Policy row with the Open button which links to our SECURITY.md. The Report a security vulnerability row, with the big green Report a vulnerability button seems to be a GitHub default (which I don't know how to disable).

My preference would be to keep both, as otherwise the link to SECURITY.md via the Report a vulnerability button is from a small right menu item:

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.

It looks like it's different depending on your repo permissions.

For me, the big green button says "View Policy" and clicking on it goes to https://github.com/willcl-ark/bitcoin/security/policy. For a repo I own/admin/maintain, it shows the page similar to the one in your screenshot.

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.

Looks like this wasn't addressed?

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.

Hmmm, for me as a non admin this repo now looks like:

image

The green View Policy button takes me to a page which includes "Policy" and "Advisories", defaulting to showing the security policy SECURITY.md.

The row below that, "Bitcoin Core Security Policy" with the non-green Open button links me straight to SECURITY.md, which I agree is in theory somewhat redundant. If there is a preference to remove the second row, "Bitcoin Core Security Policy" direct link, then we could do that?

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.

If there is a duplicate entry, at least it could be moved to the first position, as some people seem to miss it?

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.

@MarcoFalke so it seems that it is not possible to move this particular entry (nor the bottom two) to the top... Apparently we can re-order our custom templates by changing the filenames to 01_xxx, 02_xxx etc., but the two bottom entries, and the security report are just part of the GitHub UI :(

There is a GitHub beta setting to enable the Report a Vulnerability big green button for all users (changing it from a duplicate View Policy big green button), as I've done now for my fork, and can be seen below:

image

But I don't think this is what we want as I think it will subvert the [email protected] email that we want...

Comment thread .github/ISSUE_TEMPLATE/bug.yml Resolved

@kouloumos kouloumos left a comment

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.

Concept ACK

Comment thread .github/ISSUE_TEMPLATE/bug.yml Resolved

@glozow glozow left a comment

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.

Concept ACK, I think this is an improvement and have no major issues with it.

Comment thread .github/ISSUE_TEMPLATE/bug.yml Resolved
These provide more flexibility and can be designed to extract more
information from users when submitting issues.
@willcl-ark

Copy link
Copy Markdown
Member Author

Thanks for the comments. I have incorporated the changes into 3fa1185 which is also live on my fork.

@hebasto

hebasto commented Feb 21, 2023

Copy link
Copy Markdown
Member

Concept ACK.

@achow101

achow101 commented Mar 9, 2023

Copy link
Copy Markdown
Member

ACK 3fa1185

@glozow glozow left a comment

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.

ACK 3fa1185

@glozow
glozow merged commit f7bdcfc into bitcoin:master Mar 9, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants