Skip to content

Commit d557fa8

Browse files
authored
Merge pull request #6 from ReactSphere/copilot/add-issue-and-pr-templates
Add issue/PR templates and auto-label workflow
2 parents 555f2dc + ef4ecda commit d557fa8

8 files changed

Lines changed: 187 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: 🐛 Bug Report
3+
about: Report a bug or unexpected behavior
4+
title: "[Bug] "
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## 🐛 Bug Description
10+
11+
A clear and concise description of what the bug is.
12+
13+
## 📋 Steps to Reproduce
14+
15+
1. Go to '...'
16+
2. Click on '...'
17+
3. See error
18+
19+
## ✅ Expected Behavior
20+
21+
What you expected to happen.
22+
23+
## ❌ Actual Behavior
24+
25+
What actually happened.
26+
27+
## 📸 Screenshots (if applicable)
28+
29+
Add screenshots to help explain the problem.
30+
31+
## 🖥️ Environment
32+
33+
- OS: [e.g. Windows, macOS, Linux]
34+
- Browser: [e.g. Chrome, Firefox]
35+
- Version: [e.g. 22]
36+
37+
## 📝 Additional Context
38+
39+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💬 Ask for Help
4+
url: https://github.com/ReactSphere/reactsphere-first-contribution/discussions
5+
about: Ask questions or get help with contributing.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: 🚀 Feature Request
3+
about: Suggest a new feature or improvement
4+
title: "[Feature] "
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## 🚀 Feature Description
10+
11+
A clear and concise description of the feature you'd like to see.
12+
13+
## 💡 Motivation
14+
15+
Why is this feature needed? What problem does it solve?
16+
17+
## 📐 Proposed Solution
18+
19+
Describe how you think this feature should work.
20+
21+
## 🔄 Alternatives Considered
22+
23+
Describe any alternative solutions or features you've considered.
24+
25+
## 📝 Additional Context
26+
27+
Add any other context, screenshots, or examples about the feature request here.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: 👋 First Contribution
3+
about: I want to make my first open-source contribution!
4+
title: "[First Contribution] Add <your-name> to Contributors list"
5+
labels: first-contribution, good first issue
6+
assignees: ''
7+
---
8+
9+
## 👋 Hello!
10+
11+
I'm ready to make my first open-source contribution to ReactSphere!
12+
13+
**My GitHub username:** <!-- @your-username -->
14+
15+
## ✅ Checklist
16+
17+
- [ ] I have read the [CONTRIBUTING.md](../CONTRIBUTING.md)
18+
- [ ] I will fork the repository
19+
- [ ] I will add my name to `Contributors.md` in the correct format
20+
- [ ] I will open a pull request with only `Contributors.md` modified
21+
22+
## 📝 Note
23+
24+
Please follow the format in `Contributors.md`:
25+
26+
```md
27+
* [Your Name](https://github.com/your-username)
28+
```

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## 📋 Pull Request Description
2+
3+
<!-- Describe your changes in detail -->
4+
5+
## ✅ Checklist
6+
7+
- [ ] I have read the [CONTRIBUTING.md](CONTRIBUTING.md)
8+
- [ ] My PR only modifies `Contributors.md`
9+
- [ ] I have added my name in the correct format: `* [Your Name](https://github.com/your-username)`
10+
- [ ] I have not removed or edited other contributors' names
11+
- [ ] My branch name follows the pattern `add-your-name`
12+
13+
## 🔗 Related Issue (if any)
14+
15+
Closes #<!-- issue number -->
16+
17+
## 📝 Additional Notes
18+
19+
<!-- Any additional information or context about this PR -->

.github/labeler.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Auto-label rules based on files changed in a PR
2+
3+
first-contribution:
4+
- Contributors.md
5+
6+
documentation:
7+
- "*.md"
8+
- "docs/**"
9+
10+
github-config:
11+
- ".github/**"

.github/labels.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
- name: bug
2+
color: d73a4a
3+
description: Something isn't working
4+
5+
- name: enhancement
6+
color: a2eeef
7+
description: New feature or request
8+
9+
- name: good first issue
10+
color: 7057ff
11+
description: Good for newcomers
12+
13+
- name: first-contribution
14+
color: 0075ca
15+
description: First open-source contribution
16+
17+
- name: documentation
18+
color: 0052cc
19+
description: Improvements or additions to documentation
20+
21+
- name: github-config
22+
color: e4e669
23+
description: Changes to GitHub configuration files
24+
25+
- name: help wanted
26+
color: 008672
27+
description: Extra attention is needed
28+
29+
- name: invalid
30+
color: e4e669
31+
description: This doesn't seem right
32+
33+
- name: question
34+
color: d876e3
35+
description: Further information is requested
36+
37+
- name: wontfix
38+
color: ffffff
39+
description: This will not be worked on

.github/workflows/labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto Label PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Auto Label
16+
uses: actions/labeler@v5
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
configuration-path: .github/labeler.yml

0 commit comments

Comments
 (0)