From 6a406a4ba40dab9d2a76c00c789f3f34eb6dd092 Mon Sep 17 00:00:00 2001 From: Aaron Ai Date: Tue, 25 Apr 2023 14:43:38 +0800 Subject: [PATCH] Rewrite the issue/pull request template of RocketMQ --- .github/ISSUE_TEMPLATE/bug_report.md | 44 ++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 ++ .github/ISSUE_TEMPLATE/enhancement_request.md | 33 ++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 23 +++++++++ .github/ISSUE_TEMPLATE/issue_template.md | 50 ------------------- .github/PULL_REQUEST_TEMPLATE.md | 29 +++-------- 6 files changed, 113 insertions(+), 71 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/enhancement_request.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/issue_template.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000000..1264226c145 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,44 @@ +--- +name: Bug Report +about: Create a report to help us identify any unintended flaws, errors, or faults +title: '' +labels: type/bug +assignees: '' + +--- +### Before Creating the Bug Report + +- [ ] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). +- [ ] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. +- [ ] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. + +### Describe the Bug + + + +### Steps to Reproduce + + + +### What Did You Expect to See? + + + +### What Did You See Instead? + + + +### What Version Are You Using? + + + +### Environment + + + +### Additional Context + + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000000..26e9315355c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Ask Question + url: https://github.com/apache/rocketmq/discussions + about: Please go to GitHub Disccusions to ask questions diff --git a/.github/ISSUE_TEMPLATE/enhancement_request.md b/.github/ISSUE_TEMPLATE/enhancement_request.md new file mode 100644 index 00000000000..4603de1a2a3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement_request.md @@ -0,0 +1,33 @@ +--- +name: Enhancement Request +about: Suggest an enhancement for this project +title: '' +labels: type/enhancement +assignees: '' + +--- +### Before Creating the Enhancement Request + + + +- [ ] I have confirmed that this should be classified as an enhancement rather than a bug/feature. + +### Summary + + + +### Motivation + + + +### Describe the Solution You'd Like + + + +### Describe Alternatives You've Considered + + + +### Additional Context + + \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000000..ed51a0b8ba1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,23 @@ +--- +name: Feature Request +about: Suggest an idea for this project +title: '' +labels: type/new feature +assignees: '' + +--- +### Is Your Feature Request Related to a Problem? Please Describe It + + + +### Describe the Solution You'd Like + + + +### Describe Alternatives You've Considered + + + +### Additional Context + + diff --git a/.github/ISSUE_TEMPLATE/issue_template.md b/.github/ISSUE_TEMPLATE/issue_template.md deleted file mode 100644 index 9357bb2220e..00000000000 --- a/.github/ISSUE_TEMPLATE/issue_template.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -name: ISSUE_TEMPLATE -about: Describe this issue template's purpose here. - ---- - -The issue tracker is used for bug reporting purposes **ONLY** whereas feature request needs to follow the [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal). To avoid unnecessary duplication, please check whether there is a previous issue before filing a new one. - -It is recommended to start a discussion thread in the [mailing lists](http://rocketmq.apache.org/about/contact/) or [github discussions](https://github.com/apache/rocketmq/discussions) in cases of discussing your deployment plan, API clarification, and other non-bug-reporting issues. -We welcome any friendly suggestions, bug fixes, collaboration, and other improvements. - -Please ensure that your bug report is clear and self-contained. Otherwise, it would take additional rounds of communication, thus more time, to understand the problem itself. - -Generally, fixing an issue goes through the following steps: -1. Understand the issue reported; -1. Reproduce the unexpected behavior locally; -1. Perform root cause analysis to identify the underlying problem; -1. Create test cases to cover the identified problem; -1. Work out a solution to rectify the behavior and make the newly created test cases pass; -1. Make a pull request and go through peer review; - -As a result, it would be very helpful yet challenging if you could provide an isolated project reproducing your reported issue. Anyway, please ensure your issue report is informative enough for the community to pick up. At a minimum, include the following hints: - -**BUG REPORT** - -1. Please describe the issue you observed: - -- What did you do (The steps to reproduce)? - -- What is expected to see? - -- What did you see instead? - -2. Please tell us about your environment: - -3. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc): - -**FEATURE REQUEST** - -1. Please describe the feature you are requesting. - -2. Provide any additional detail on your proposed use case for this feature. - -3. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue? - -4. If there are some sub-tasks involved, use -[] for each sub-task and create a corresponding issue to map to the sub-task: - -- [sub-task1-issue-number](example_sub_issue1_link_here): sub-task1 description here, -- [sub-task2-issue-number](example_sub_issue2_link_here): sub-task2 description here, -- ... diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 550a6fd5bdf..96bffa55a3f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,28 +1,15 @@ + -**Make sure set the target branch to `develop`** +### Which Issue(s) This PR Fixes -## What is the purpose of the change + - +Fixes #issue_id -fix # +### Brief Description -## Brief changelog + -XX +### How Did You Test This Change? -## Verifying this change - -XXXX - -Follow this checklist to help us incorporate your contribution quickly and easily. Notice, `it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR`. - -- [x] Make sure there is a [Github issue](https://github.com/apache/rocketmq/issues) filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue. -- [x] Format the pull request title like `[ISSUE #123] Fix UnknownException when host config not exist`. Each commit in the pull request should have a meaningful subject line and body. -- [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. -- [x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in [test module](https://github.com/apache/rocketmq/tree/master/test). -- [x] Run `mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle` to make sure basic checks pass. Run `mvn clean install -DskipITs` to make sure unit-test pass. Run `mvn clean test-compile failsafe:integration-test` to make sure integration-test pass. -- [ ] If this contribution is large, please file an [Apache Individual Contributor License Agreement](http://www.apache.org/licenses/#clas). +