Skip to content

Commit

Permalink
ci(actions): Refine the GitHub Actions workflow files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 12, 2024
1 parent 44ad97b commit 3dbab05
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 90 deletions.
50 changes: 24 additions & 26 deletions .github/ISSUE_TEMPLATE/🐛-bug-report.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
---
name: "\U0001F41B Bug report"
about: Create a report to help us improve
name: '🐛 Bug report'
about: Report an issue to improve the functionality and usability of the project.
title: '[BUG]'
labels: bug
assignees: ZL-Asica
---

**Describe the bug**
A clear and concise description of what the bug is.
**Description:**
Provide a clear and concise description of the issue.

**To Reproduce**
Steps to reproduce the behavior:
**Steps to Reproduce:**

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
1. Navigate to `...`
2. Perform action `...`
3. Observe the behavior `...`

**Expected behavior**
A clear and concise description of what you expected to happen.
**Expected Behavior:**
Describe what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Screenshots/Visuals:**
Attach any screenshots that demonstrate the problem.

**Desktop (please complete the following information):**
**System Details:**

- OS: [e.g. macOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- Network physical location [e.g. U.S., China (Mainland)
- **OS**: (e.g., macOS Ventura)
- **Browser**: (e.g., Chrome 118.0)
- **Version**: (e.g., v1.2.3)
- **Network**: (e.g., U.S., Mainland China)

**Smartphone (please complete the following information):**
**Mobile Environment:**

- Device: [e.g. iPhone 16]
- OS: [e.g. iOS 18.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- **Device**: (e.g., iPhone 15)
- **OS**: (e.g., iOS 18)
- **Browser**: (e.g., Safari)
- **Version**: (e.g., v18.3.2)

**Additional context**
Add any other context about the problem here.
**Additional Context:**
Add any extra information here, including related configuration or debugging attempts.
20 changes: 10 additions & 10 deletions .github/ISSUE_TEMPLATE/💡-feature-request.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
name: "\U0001F4A1 Feature request"
about: Suggest an idea for this project
name: '💡 Feature request'
about: Propose new features or improvements to enhance the project.
title: '[Feature]'
labels: enhancement
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Problem/Background:**
Explain the motivation behind this feature and any existing limitations.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Proposed Solution:**
Describe the desired feature in detail, including UI/UX suggestions if applicable.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Alternatives Considered:**
List any alternative approaches or previous solutions considered.

**Additional context**
Add any other context or screenshots about the feature request here.
**Additional Context:**
Provide any other relevant context, visuals, or references.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/🔄-refactor-Improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: '🔄 Refactor/Improvement'
about: Suggest code, structure, or performance optimizations.
title: '[Refactor]'
labels: enhancemanet
assignees: ZL-Asica
---

**Description:**
Describe what you’d like to refactor or improve, linking to specific files/components.

**Impact:**
Explain how this change will improve the project (e.g., maintainability, readability, or performance).

**Suggested Approach:**
Outline an approach or provide a sample refactored code snippet.

**Related PRs/Commits:**
Link to relevant code or previous attempts at refactoring.
29 changes: 17 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
## Description

Please include a summary of the changes and the related issue.
Provide a concise summary of the changes, the motivation behind them, and a link to any relevant issues.

## Type of change
## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Code refactor
- [ ] Breaking change
- [ ] Style update
- [ ] Documentation update
Select all options that apply to this pull request:

- [ ] 🐛 Bug fix
- [ ] ✨ New feature
- [ ] 🛠 Code refactor
- [ ] ⚠️ Breaking change
- [ ] 🎨 Style update
- [ ] 📚 Documentation update

## Checklist

- [ ] I have performed a self-review of my code
- [ ] Single file within 200 lines of codes
- [ ] Comments has added
- [ ] My changes generate no new warnings
Before submitting, please confirm the following:

- [ ] I have performed a self-review of my code.
- [ ] The main changes are limited to single files, ideally within 200 lines.
- [ ] Clear and concise comments have been added where necessary.
- [ ] My changes do not introduce any new warnings or errors in the codebase.
- [ ] Any dependencies have been updated in `package.json` and documented.
24 changes: 0 additions & 24 deletions .github/workflows/close-stale-issues-prs.yml

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/label-pr-based-on-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
});
const labelsToColor = {
main: 'f66a0a', // Orange
'main': 'f66a0a', // Orange
'common-components': '1f77b4', // Blue
layout: '8c564b', // Brown
service: '2ca02c', // Green
styles: '9467bd', // Purple
content: 'ffdd57', // Yellow
types: 'd62728', // Red
'posts': '8c564b', // Brown
'service': '2ca02c', // Green
'styles': '9467bd', // Purple
'content': 'ffdd57', // Yellow
'types': 'd62728', // Red
};
const labels = new Set();
Expand All @@ -41,22 +41,22 @@ jobs:
if (file.filename.startsWith('src/app')) {
labels.add('main');
}
if (file.filename.startsWith('src/components/layout')) {
labels.add('layout');
if (file.filename.startsWith('src/components/posts')) {
labels.add('posts');
}
if (file.filename.startsWith('src/components/common')) {
labels.add('common-components');
}
if (file.filename.startsWith('src/service')) {
labels.add('service');
if (file.filename.startsWith('src/services')) {
labels.add('services');
}
if (file.filename.startsWith('src/styles')) {
if (file.filename.endsWith('.css')) {
labels.add('styles');
}
if (file.filename.startsWith('posts')) {
labels.add('content');
}
if (file.filename.startsWith('src/types.d.ts')) {
if (file.filename.startsWith('src/types.d.ts') || file.filename.endsWith('.d.ts')) {
labels.add('types');
}
});
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/label-pr-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"200": "L",
"800": "XL",
"2000": "XXL"
"0": XS,
"20": S,
"50": M,
"200": L,
"800": XL,
"2000": XXL,
}
- name: Set label colors
Expand Down

0 comments on commit 3dbab05

Please sign in to comment.