Skip to content

Enable issue template chooser#22560

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
fengyuentau:enable_issue_template_chooser_with_templates
Oct 3, 2022
Merged

Enable issue template chooser#22560
asmorkalov merged 1 commit intoopencv:4.xfrom
fengyuentau:enable_issue_template_chooser_with_templates

Conversation

@fengyuentau
Copy link
Copy Markdown
Member

This pull request enables template chooser with templates for bug report and feature request. See my fork for the effect: https://github.com/fengyuentau/opencv/issues/new/choose. Note these changes only take effect if they are put in the default branch.

Github documentation for configuring issue templates: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@fengyuentau
Copy link
Copy Markdown
Member Author

By the way, do we need a template for documentation? I saw there were some issues on documentation as well.

@alalek
Copy link
Copy Markdown
Member

alalek commented Sep 26, 2022

Thank you!


Perhaps we need some "other" category for Epics/stories (like support of new compiler / OS), Evolution proposals or improvement discussions.


Lack of documentation details is a "bug" or "feature"? We could add separate "documentation" category for them (or reuse "bug").


It makes sense to avoid loosing of existed template helper.

@asmorkalov
Copy link
Copy Markdown
Contributor

Thanks a lot! The solution looks great!

@fengyuentau
Copy link
Copy Markdown
Member Author

Perhaps we need some "other" category for Epics/stories (like support of new compiler / OS), Evolution proposals or improvement discussions.

It makes sense to avoid loosing of existed template helper.

I think it is hard to cover all the topics. From my perspective, evolution proposals / improvement discussions/ support of new platforms can all go to feature request. But at least, users can use the old template with a click on the "Open a blank issue" as follows.

image

It is not really blank, since blank_issues_enabled is set to true in config.yml, which the ISSUE_TEMPLATE.md in .github.

Lack of documentation details is a "bug" or "feature"? We could add separate "documentation" category for them (or reuse "bug").

I am thinking of adding a separate category for "documentation" to use the auto-label feature that GitHub provides. For example, issue created from the "documentation" template can be automatically labelled with "documentation".

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍 Works for me. Please squash commits and I'll merge it.

@fengyuentau fengyuentau force-pushed the enable_issue_template_chooser_with_templates branch from 078d14d to 4d0123c Compare September 30, 2022 07:46
@fengyuentau
Copy link
Copy Markdown
Member Author

Commits are squashed.

label: Issue submission checklist
options:
- label: I report the issue, it's not a question
required: true
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.

Perhaps it would be better not to make all check boxes "required", because some issues do not have reproducer code or related data file or reporter does not have ability to check if the problem exists in the latest OpenCV release, etc. We make people "lie" by demanding checking all boxes to file an issue 😃

Alternatively some statements can be rephrased, e.g. "I've attached a reproducer or this statement is not applicable"

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.

Thanks for the review! This is indeed a good suggestion. The last three checkboxes are not required anymore, but the first checkbox "I report the issue, it's not a question" is still required.

I have reservations on the rephrasing since it makes people click the checkbox anyway, and this could confuse reviewers whether the reporter attaches reproducer or the statement is not applicable.

Copy link
Copy Markdown
Contributor

@mshabunin mshabunin left a comment

Choose a reason for hiding this comment

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

Looks good to me besides minor cosmetic comment.

@fengyuentau fengyuentau force-pushed the enable_issue_template_chooser_with_templates branch from 4d0123c to 692c536 Compare October 1, 2022 13:54
@fengyuentau
Copy link
Copy Markdown
Member Author

Should we turn on the auto-label feature for bug report (label with "bug") and feature request (label with "feature")?

@asmorkalov
Copy link
Copy Markdown
Contributor

Imho, we do not need auto-labeling for now. Let's merge it as is and add enhancements later.

@asmorkalov asmorkalov merged commit 7fc6146 into opencv:4.x Oct 3, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
@asmorkalov asmorkalov added this to the 4.7.0 milestone Jan 23, 2023
@fengyuentau fengyuentau deleted the enable_issue_template_chooser_with_templates branch November 21, 2023 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants