From 0193464145d9ef982ae886ae81d6327030476b10 Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 08:40:29 +0700 Subject: [PATCH 1/8] ci(github-actions): add permission and update version --- .github/workflows/labeler.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index e97dda8..18b8796 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 }} From c0e8c61c7474b10838b2139cc5334b338a3f5b2b Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 08:47:52 +0700 Subject: [PATCH 2/8] docs(issue-template): add bug report template --- .github/ISSUE_TEMPLATE/bug_report.yml | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..9161c12 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -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: Yes + 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 From 7187b1ec60623463d0b4d9b59780962553d84e8e Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 08:49:56 +0700 Subject: [PATCH 3/8] docs(issue-template): fix problem `label` must be of type string --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 9161c12..d8f25a2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -8,7 +8,7 @@ body: label: Did you use latest version? description: Please check the latest version before reporting a bug. options: - - label: Yes + - label: I have checked the latest version. required: true - type: dropdown attributes: From 951fb1135ad757129583847e33a5dbfc7eedc2d9 Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 08:54:54 +0700 Subject: [PATCH 4/8] docs(issue-template): add feature request template --- .github/ISSUE_TEMPLATE/feature_request.yml | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..b7bfe8f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,38 @@ +name: 🧧 Feature Request +description: Suggest a new feature or enhancement. +title: 'feature: ' +labels: ['enhancement'] +body: + 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 From e0618c4f96d6e640811480f9050b0abe34f9771b Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 08:56:49 +0700 Subject: [PATCH 5/8] docs(issue-template): fix error parsing a block mapping --- .github/ISSUE_TEMPLATE/feature_request.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index b7bfe8f..8017ac3 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -3,6 +3,16 @@ 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. From 82629077ff1e1ad53c8e48bf7a50bd41c45f1035 Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 09:01:22 +0700 Subject: [PATCH 6/8] docs(template): add pull request template --- .github/pull_request_template.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..0bb480a --- /dev/null +++ b/.github/pull_request_template.md @@ -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. From bf2051ab0de51c6db4087027e8835ea128867d5f Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 14:06:41 +0700 Subject: [PATCH 7/8] ci(github-actions): enable bump minor --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0348da..505b6fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 From b0551048ea370128cbeaab8a1362173bb6463d84 Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Sun, 19 Nov 2023 15:16:13 +0700 Subject: [PATCH 8/8] chore(config): add labeler config --- .github/labeler.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..d60e954 --- /dev/null +++ b/.github/labeler.yml @@ -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/**'