Skip to content

Commit

Permalink
Merge pull request #7 from PunGrumpy/dev/ci
Browse files Browse the repository at this point in the history
Make CI/CD to look better
  • Loading branch information
PunGrumpy authored Nov 19, 2023
2 parents 61c7bb4 + b055104 commit af7dcd6
Show file tree
Hide file tree
Showing 6 changed files with 169 additions and 1 deletion.
71 changes: 71 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: πŸͺ² Bug Report
description: Report a bug or issue with the project.
title: 'bug: '
labels: ['bug']
body:
- type: checkboxes
attributes:
label: Did you use latest version?
description: Please check the latest version before reporting a bug.
options:
- label: I have checked the latest version.
required: true
- type: dropdown
attributes:
label: Platform
description: What platform(s) does this affect?
options:
- 🐧 Linux
- 🍎 macOS
- πŸͺŸ Windows
- type: dropdown
attributes:
label: Priority
description: How important is this issue?
options:
- πŸ”₯ Critical
- 🚨 High
- 🚧 Medium
- πŸ’€ Low
- type: textarea
attributes:
label: Description
description: Describe the bug or issue.
placeholder: |
Describe the bug or issue.
render: Markdown
- type: textarea
attributes:
label: Steps to Reproduce
description: Describe the steps to reproduce the bug or issue.
placeholder: |
Describe the steps to reproduce the bug or issue.
render: Markdown
- type: textarea
attributes:
label: Expected Behavior
description: Describe what you expected to happen.
placeholder: |
Describe what you expected to happen.
render: Markdown
- type: textarea
attributes:
label: Actual Behavior
description: Describe what actually happened.
placeholder: |
Describe what actually happened.
render: Markdown
- type: textarea
attributes:
label: Additional Information
description: Provide any additional information, such as screenshots or logs.
placeholder: |
Provide any additional information, such as screenshots or logs.
render: Markdown
- type: textarea
attributes:
label: Reproduction Repository
description: Provide a link to a reproduction repository.
placeholder: |
Provide a link to a reproduction repository.
render: Markdown
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 🧧 Feature Request
description: Suggest a new feature or enhancement.
title: 'feature: '
labels: ['enhancement']
body:
- type: dropdown
attributes:
label: Priority
description: How important is this feature request?
options:
- πŸ”₯ Critical
- 🚨 High
- 🚧 Medium
- πŸ’€ Low
- type: input
attributes:
label: Title
description: A clear and concise description of what the problem is.
placeholder: |
A clear and concise description of what the problem is.
- type: textarea
attributes:
label: Description
description: Describe the feature or enhancement.
placeholder: |
Describe the feature or enhancement.
render: Markdown
- type: textarea
attributes:
label: Additional Information
description: Provide any additional information or context.
placeholder: |
Provide any additional information or context.
render: Markdown
- type: textarea
attributes:
label: Alternatives
description: Describe any alternatives you've considered.
placeholder: |
Describe any alternatives you've considered.
render: Markdown
- type: textarea
attributes:
label: Additional Context
description: Add any other context or screenshots about the feature request here.
placeholder: |
Add any other context or screenshots about the feature request here.
render: Markdown
26 changes: 26 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'source':
- 'src/**/*.{js,jsx,ts,tsx}'

'test':
- 'src/**/__tests__/*.{js,jsx,ts,tsx}'
- 'src/**/*.{spec,test}.{js,jsx,ts,tsx}'

'lint':
- '.eslintrc.js'
- '.prettierrc.js'

'ci/cd':
- '.github/workflows/**/*.{yml,yaml}'

'changelog':
- 'CHANGELOG.md'

'config':
- 'package.json'
- 'bun.lockb'

'ignore':
- '**/node_modules/**'
- '**/dist/**'
- '**/build/**'
- '**/coverage/**'
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## `πŸ«€` Pull Request Template

### `πŸ§‘β€πŸ«` Description

Describe the changes you made and why you made them. If you are fixing an issue, please mention it here.

### `πŸ“Έ` Screenshots

If you are changing the UI, please include screenshots of the changes.

### `πŸ”—` Related Issues

If you are fixing an issue, please mention it here.

### `πŸ“` Checklist

- [ ] I have tested the changes locally.
- [ ] I have added tests for the changes.
- [ ] I have updated the documentation accordingly.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
with:
release-type: node
token: ${{ secrets.GITHUB_TOKEN }}
bump-minor-pre-major: true
- name: πŸ”” Checkout
uses: actions/checkout@v4
- name: 🏷️ Tag stable versions
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ on:
types: [opened, labeled, unlabeled]
pull_request:
types: [opened, labeled, unlabeled]
permissions:
contents: read
pull-requests: write
jobs:
label:
name: πŸ”– Label issues and pull requests
runs-on: ubuntu-latest
steps:
- name: πŸ”– Add labels
uses: actions/labeler@v3
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit af7dcd6

Please sign in to comment.