Skip to content

Commit bd6eb4b

Browse files
authored
[ISSUE #4491]🔨Revise issue templates for bug reports, documentation, feature requests, and unit tests to enhance clarity and usability (#4492)
1 parent 2344ce7 commit bd6eb4b

File tree

6 files changed

+159
-269
lines changed

6 files changed

+159
-269
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 33 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -16,96 +16,66 @@
1616
#
1717

1818
name: Bug Report
19-
title: "[Bug🐛] Bug title "
20-
description: Create a report to help us identify any unintended flaws, errors, or faults.
19+
title: "[Bug🐛] "
20+
description: Report a bug to help us improve
2121
labels: [ "bug🐛" ]
2222
body:
2323
- type: checkboxes
2424
attributes:
25-
label: Before Creating the Bug Report
25+
label: Prerequisites
2626
options:
27-
- label: >
28-
I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/mxsm/rocketmq-rust/discussions).
27+
- label: I have searched existing issues and discussions
2928
required: true
30-
- label: >
31-
I have searched the [GitHub Issues](https://github.com/mxsm/rocketmq-rust/issues) and [GitHub Discussions](https://github.com/mxsm/rocketmq-rust/discussions) of this repository and believe that this is not a duplicate.
29+
- label: This is a bug, not a question (use Discussions for questions)
3230
required: true
33-
- label: >
34-
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
35-
required: true
36-
37-
- type: textarea
38-
attributes:
39-
label: Runtime platform environment
40-
description: Describe the runtime platform environment.
41-
placeholder: >
42-
OS: (e.g., "Ubuntu 20.04")
43-
OS: (e.g., "Windows Server 2019")
44-
validations:
45-
required: false
46-
47-
- type: textarea
48-
attributes:
49-
label: RocketMQ Rust version
50-
description: Describe the RocketMQ Rust version.
51-
placeholder: >
52-
branch: (e.g master)
53-
version: (e.g. 0.1.0)
54-
Git commit id: (e.g. 37b9bfa7f4516b8da69e91ec0cb288b9724262a2)
55-
validations:
56-
required: false
5731

5832
- type: textarea
5933
attributes:
60-
label: Rust Version
61-
description: Run or Compiler version.
62-
placeholder: >
63-
Compiler: (e.g., "1.75.0")
64-
OS: (e.g., "Ubuntu 20.04")
34+
label: Environment
35+
description: Your runtime environment
36+
placeholder: |
37+
- OS: Ubuntu 22.04 / Windows 11 / macOS 14
38+
- RocketMQ Rust: v0.3.0 / main branch / commit abc123
39+
- Rust: 1.75.0
40+
value: |
41+
- OS:
42+
- RocketMQ Rust:
43+
- Rust:
6544
validations:
66-
required: false
45+
required: true
6746

6847
- type: textarea
6948
attributes:
70-
label: Describe the Bug
71-
description: Describe what happened.
72-
placeholder: >
73-
A clear and concise description of what the bug is.
49+
label: Bug Description
50+
description: What happened?
51+
placeholder: Clear and concise description of the bug
7452
validations:
75-
required: false
53+
required: true
7654

7755
- type: textarea
7856
attributes:
7957
label: Steps to Reproduce
80-
description: Describe the steps to reproduce the bug here.
81-
placeholder: >
82-
If possible, provide a recipe for reproducing the error.
58+
placeholder: |
59+
1. Start broker with config...
60+
2. Send message with...
61+
3. Observe error...
8362
validations:
84-
required: false
63+
required: true
8564

8665
- type: textarea
8766
attributes:
88-
label: What Did You Expect to See?
89-
description: You expect to see result.
90-
placeholder: >
91-
A clear and concise description of what you expected to see.
92-
validations:
93-
required: false
67+
label: Expected vs Actual
68+
placeholder: |
69+
**Expected:** Should send successfully
70+
**Actual:** Connection timeout error
9471
9572
- type: textarea
9673
attributes:
97-
label: What Did You See Instead?
98-
description: You instead to see result.
99-
placeholder: >
100-
A clear and concise description of what you saw instead.
101-
validations:
102-
required: false
74+
label: Logs/Screenshots
75+
description: Relevant logs, error messages, or screenshots
10376

10477
- type: textarea
10578
attributes:
10679
label: Additional Context
107-
description: Additional context.
108-
placeholder: >
109-
Add any other context about the problem here.
110-
validations:
111-
required: false
80+
description: Additional context
81+
placeholder: Add any other context about the problem here

.github/ISSUE_TEMPLATE/doc.yml

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,58 @@
1515
# limitations under the License.
1616
#
1717

18-
name: Documentation Related
19-
title: "[Doc📝] Documentation Related "
20-
description: I find some issues related to the documentation.
18+
name: Documentation
19+
title: "[Doc📝] "
20+
description: Report documentation issues or improvements
2121
labels: [ "documentation📝" ]
2222
body:
23-
- type: checkboxes
23+
- type: dropdown
24+
id: issue-type
2425
attributes:
25-
label: Search before creation
26-
description: >
27-
Please make sure to search in the [issues](https://github.com/mxsm/rocketmq-rust/issues)
28-
first to see whether the same issue was reported already.
26+
label: Issue Type
27+
description: Select the type of documentation issue
2928
options:
30-
- label: >
31-
I had searched in the [issues](https://github.com/mxsm/rocketmq-rust/issues) and found
32-
no similar issues.
33-
required: true
29+
- Typo/Grammar
30+
- Missing documentation
31+
- Incorrect/Outdated information
32+
- Improvement suggestion
33+
validations:
34+
required: true
3435

3536
- type: textarea
3637
attributes:
37-
label: Documentation Related
38-
description: Describe the suggestion about document.
39-
placeholder: >
40-
e.g There is a typo
38+
label: Location
39+
description: Where is the issue?
40+
placeholder: |
41+
File: README.md line 42
42+
Or: https://docs.rs/rocketmq-rust/...
4143
validations:
42-
required: false
44+
required: true
4345

44-
- type: checkboxes
46+
- type: textarea
4547
attributes:
46-
label: Are you willing to submit PR?
47-
description: >
48-
This is absolutely not required, but we are happy to guide you in the contribution process
49-
especially if you already have a good understanding of how to implement the fix.
50-
options:
51-
- label: Yes I am willing to submit a PR!
48+
label: Description
49+
description: What needs to be fixed or improved?
50+
placeholder: The example code is outdated and doesn't compile
51+
validations:
52+
required: true
5253

53-
- type: markdown
54+
- type: textarea
5455
attributes:
55-
value: "Thanks for completing our form!"
56+
label: Suggested Fix
57+
description: How should it be corrected?
58+
placeholder: |
59+
Change:
60+
```rust
61+
// old code
62+
```
63+
To:
64+
```rust
65+
// new code
66+
```
67+
68+
- type: checkboxes
69+
attributes:
70+
label: Willing to contribute?
71+
options:
72+
- label: I can submit a PR for this
Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,2 @@
1-
#
2-
# Licensed to the Apache Software Foundation (ASF) under one or more
3-
# contributor license agreements. See the NOTICE file distributed with
4-
# this work for additional information regarding copyright ownership.
5-
# The ASF licenses this file to You under the Apache License, Version 2.0
6-
# (the "License"); you may not use this file except in compliance with
7-
# the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
16-
#
17-
18-
19-
name: Enhancement Request
20-
title: "[Enhancement⚡️] Enhancement title"
21-
description: Suggest an enhancement for this project
22-
labels: [ "enhancement⚡️" ]
23-
body:
24-
- type: checkboxes
25-
attributes:
26-
label: Before Creating the Enhancement Request
27-
description: >
28-
Most of issues should be classified as bug or feature request. An issue should be considered as an enhancement when it proposes improvements to
29-
existing functionality or user experience, without necessarily introducing new features or fixing existing bugs.
30-
options:
31-
- label: >
32-
I have confirmed that this should be classified as an enhancement rather than a bug/feature.
33-
required: false
34-
35-
- type: textarea
36-
attributes:
37-
label: Summary
38-
placeholder: >
39-
A clear and concise description of the enhancement you would like to see in the project.
40-
validations:
41-
required: false
42-
43-
- type: textarea
44-
attributes:
45-
label: Motivation
46-
placeholder: >
47-
Explain why you believe this enhancement is necessary, and how it benefits the project and community.
48-
Include any specific use cases that you have in mind.
49-
validations:
50-
required: false
51-
52-
- type: textarea
53-
attributes:
54-
label: Describe the Solution You'd Like
55-
placeholder: >
56-
Describe the enhancement you propose, detailing the change and implementation steps involved.
57-
If you have multiple solutions, please list them separately.
58-
validations:
59-
required: false
60-
61-
- type: textarea
62-
attributes:
63-
label: Describe Alternatives You've Considered
64-
placeholder: >
65-
List any alternative enhancements or implementations you have considered, and explain why they may not be as effective or appropriate.
66-
validations:
67-
required: false
68-
69-
- type: textarea
70-
attributes:
71-
label: Additional Context
72-
placeholder: >
73-
Add any relevant context, screenshots, prototypes, or other supplementary information to help illustrate the enhancement.
74-
validations:
75-
required: false
1+
# This template has been merged into feature_request.yml
2+
# Please use Feature/Enhancement Request template instead

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,51 @@
1616
#
1717

1818

19-
name: Feature Request
20-
title: "[Feature🚀] New feature title"
21-
description: Suggest an idea for this project.
19+
name: Feature/Enhancement Request
20+
title: "[Feature🚀] "
21+
description: Suggest a new feature or improvement
2222
labels: [ "feature🚀" ]
2323
body:
24-
- type: textarea
24+
- type: dropdown
25+
id: type
2526
attributes:
26-
label: Is Your Feature Request Related to a Problem?
27-
description: Please Describe It.
28-
placeholder: >
29-
A clear and concise description of what the problem is.
27+
label: Type
28+
description: Choose the type of request
29+
options:
30+
- New Feature
31+
- Enhancement (improvement to existing functionality)
3032
validations:
31-
required: false
33+
required: true
3234

3335
- type: textarea
3436
attributes:
35-
label: Describe the Solution You'd Like
36-
description: Describe how you solved it.
37-
placeholder: >
38-
A clear and concise description of what you want to happen.
37+
label: Problem/Motivation
38+
description: What problem does this solve? Why is it needed?
39+
placeholder: Currently, users cannot...
3940
validations:
40-
required: false
41+
required: true
4142

4243
- type: textarea
4344
attributes:
44-
label: Describe Alternatives You've Considered
45-
description: Describe your solution
46-
placeholder: >
47-
A clear and concise description of any alternative solutions or features you've considered.
45+
label: Proposed Solution
46+
description: How would you implement this?
47+
placeholder: |
48+
Add a new API that allows...
49+
50+
Example:
51+
```rust
52+
let producer = Producer::new();
53+
```
4854
validations:
49-
required: false
55+
required: true
56+
57+
- type: textarea
58+
attributes:
59+
label: Alternatives
60+
description: Other approaches you've considered
61+
placeholder: Could also use... but that has limitations...
5062

5163
- type: textarea
5264
attributes:
5365
label: Additional Context
54-
description: Additional context.
55-
placeholder: >
56-
Add any other context about the problem here.
57-
validations:
58-
required: false
66+
description: Links, references, or examples

0 commit comments

Comments
 (0)