Skip to content

optimize: fix ISSUE_TEMPLATE not work#7370

Merged
slievrly merged 5 commits intoapache:2.xfrom
YoWuwuuuw:20250526
May 29, 2025
Merged

optimize: fix ISSUE_TEMPLATE not work#7370
slievrly merged 5 commits intoapache:2.xfrom
YoWuwuuuw:20250526

Conversation

@YoWuwuuuw
Copy link
Contributor

@YoWuwuuuw YoWuwuuuw commented May 26, 2025

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

  1. When Github identify the issue template, it will judge the structure and metadata at the beginning of the file under the ISSUE_TEMPLATE directory. If license is in the md file header, it cannot be loaded. Therefore, the use of yml file now has higher extensibility.
  2. Add config.yml to ISSUE_TEMPLATE directory. Currently, configure to not allow publishing blank issue. In addition, a link to discussion has been added

Ⅱ. Does this pull request fix one issue?

fixes #7365

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

The new creation process can go https://github.com/YoWuwuuuw/incubator-seata/issues

Ⅴ. Special notes for reviews

  • FEATURE_REQUEST looks like:
    3feef66b1fc0911712ab390997251ed

  • BUG_REPORT looks like:
    019ad57e104fd3ef3cd5b6d00f535b8

@funky-eyes funky-eyes requested a review from Copilot May 26, 2025 09:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an issue with GitHub’s handling of issue templates by transitioning from Markdown (.md) to YAML (.yml) formatted templates and updating the configuration accordingly.

  • Updated README reference to point to the YAML bug report template
  • Added a new configuration file (config.yml) and YAML templates for bug reports and feature requests
  • Removed outdated Markdown templates for feature requests and bug reports

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
README.md Updated the bug report template reference to the YAML version
.github/ISSUE_TEMPLATE/config.yml Added a new config file to enable blank issues
.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml Added a new YAML template for feature requests
.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md Removed the outdated Markdown template for feature requests
.github/ISSUE_TEMPLATE/BUG_REPORT.yml Added a new YAML template for bug reports
.github/ISSUE_TEMPLATE/BUG_REPORT.md Removed the outdated Markdown template for bug reports
Comments suppressed due to low confidence (2)

README.md:136

  • The updated link in README.md points to the YAML bug report template. Please double-check that the path aligns with the repository structure and that users are aware of the format change.
Please follow the [template](./.github/ISSUE_TEMPLATE/BUG_REPORT.yml) for reporting any issues.

.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md:1

  • The removal of the Markdown feature request template appears intentional in favor of the new YAML template. Verify that any internal documentation referring to the Markdown template is updated accordingly.
-<!--

@funky-eyes funky-eyes added this to the 2.5.0 milestone May 26, 2025
Copy link
Member

Choose a reason for hiding this comment

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

It might be a good idea to create an Ask a question section and include a link to the apache mailing list there.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good advice!

Copy link
Contributor Author

@YoWuwuuuw YoWuwuuuw May 26, 2025

Choose a reason for hiding this comment

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

Amazing! Added a link to discussion. When a user publishes a discussion, there will be automatic email announcements.

Copy link
Member

Choose a reason for hiding this comment

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

Feature requests that impact the overall Roadmap should be submitted to the mailing list to enable broader discussion and collaboration.

Copy link
Member

Choose a reason for hiding this comment

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

I think including both would be great!

As @slievrly mentioned, features that may impact the roadmap could go through the mailing list,
while questions related to the code itself might be better suited for GitHub Discussions, especially since Markdown can be used there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feature requests that impact the overall Roadmap should be submitted to the mailing list to enable broader discussion and collaboration.

Our current email configuration is. asf.yaml, which can only automatically notify emails based on issue granularity, so I added a prompt word in Feature Request Issue Template to remind users to actively send emails.
Or do we have a better way?
Or should I set up a confirmation box to let the user confirm feature scope?

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be enough to simply add a mailing list url, like what’s done in JUnit 5’s config.yml.
(they add stackoverflow link)

@funky-eyes funky-eyes added the type: bug Category issues or prs related to bug. label May 26, 2025
@codecov
Copy link

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.49%. Comparing base (da561bd) to head (208d816).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7370      +/-   ##
============================================
- Coverage     58.49%   58.49%   -0.01%     
- Complexity      535      539       +4     
============================================
  Files          1272     1272              
  Lines         45862    45862              
  Branches       5522     5522              
============================================
- Hits          26827    26825       -2     
- Misses        16515    16518       +3     
+ Partials       2520     2519       -1     

see 5 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

body:
- type: markdown
attributes:
value: Please do not use this issue template to report security vulnerabilities but refer to our [security policy](https://github.com/seata/seata/security/policy).
Copy link
Member

Choose a reason for hiding this comment

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

In the original template, it was displayed as a comment, which only hints at the author but doesn't show it when rendering.Can we achieve the same effect here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@slievrly slievrly changed the title bugfix: ISSUE_TEMPLATE not work optimize: fix ISSUE_TEMPLATE not work May 28, 2025
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly slievrly merged commit a760f51 into apache:2.x May 29, 2025
9 checks passed
slievrly pushed a commit to slievrly/fescar that referenced this pull request Oct 21, 2025
YvCeung pushed a commit to YvCeung/incubator-seata that referenced this pull request Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Category issues or prs related to bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ISSUE_TEMPLATE not work

4 participants