From e21622e40957aed7c7c4ac18da8611e64d931d71 Mon Sep 17 00:00:00 2001 From: "Christopher (Se-Kwang) Chia" Date: Sun, 26 May 2024 10:56:15 -0400 Subject: [PATCH 1/6] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +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 [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From 71c2c017ec64ca1bb86a4968e2869692bc49765e Mon Sep 17 00:00:00 2001 From: "Christopher (Se-Kwang) Chia" Date: Sun, 26 May 2024 11:06:04 -0400 Subject: [PATCH 2/6] Create label.yml --- .github/workflows/label.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/label.yml diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..4613569 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,22 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request_target] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From c5975281862c573bc98bba1a98188837e4fbefc1 Mon Sep 17 00:00:00 2001 From: "Christopher (Se-Kwang) Chia" Date: Sun, 26 May 2024 11:07:09 -0400 Subject: [PATCH 3/6] Create labeler.yml --- .github/labeler.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..c0a627c --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,41 @@ +# Add 'root' label to any root file changes +# Quotation marks are required for the leading asterisk +root: +- changed-files: + - any-glob-to-any-file: '*' + +# Add 'AnyChange' label to any changes within the entire repository +AnyChange: +- changed-files: + - any-glob-to-any-file: '**' + +# Add 'Documentation' label to any changes within 'docs' folder or any subfolders +Documentation: +- changed-files: + - any-glob-to-any-file: docs/** + +# Add 'Documentation' label to any file changes within 'docs' folder +Documentation: +- changed-files: + - any-glob-to-any-file: docs/* + +## Add 'Documentation' label to any file changes within 'docs' or 'guides' folders +Documentation: +- changed-files: + - any-glob-to-any-file: ['docs/*', 'guides/*'] + +# Add 'Documentation' label to any change to .md files within the entire repository +Documentation: +- changed-files: + - any-glob-to-any-file: '**/*.md' + +# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder +source: +- all: + - changed-files: + - any-glob-to-any-file: 'src/**/*' + - all-globs-to-all-files: '!src/docs/*' + +# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name +feature: + - head-branch: ['^feature', 'feature'] From d1f05176060e54250fd7a147e788f99a3f4b9a04 Mon Sep 17 00:00:00 2001 From: "Christopher (Se-Kwang) Chia" Date: Sun, 26 May 2024 11:12:10 -0400 Subject: [PATCH 4/6] Update labeler.yml --- .github/labeler.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index c0a627c..dba28c2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -9,20 +9,10 @@ AnyChange: - changed-files: - any-glob-to-any-file: '**' -# Add 'Documentation' label to any changes within 'docs' folder or any subfolders -Documentation: -- changed-files: - - any-glob-to-any-file: docs/** - -# Add 'Documentation' label to any file changes within 'docs' folder -Documentation: -- changed-files: - - any-glob-to-any-file: docs/* - ## Add 'Documentation' label to any file changes within 'docs' or 'guides' folders Documentation: - changed-files: - - any-glob-to-any-file: ['docs/*', 'guides/*'] + - any-glob-to-any-file: ['docs/**', 'guides/*'] # Add 'Documentation' label to any change to .md files within the entire repository Documentation: From 8d94ac5c3531ebb113a503f0ffd40438fda43c62 Mon Sep 17 00:00:00 2001 From: "Christopher (Se-Kwang) Chia" Date: Sun, 26 May 2024 11:14:05 -0400 Subject: [PATCH 5/6] Update label.yml --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 4613569..d23c4d4 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -17,6 +17,6 @@ jobs: pull-requests: write steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From a30bf4496f78200b1339f3c0088ad5f26a0d13da Mon Sep 17 00:00:00 2001 From: "Christopher (Se-Kwang) Chia" Date: Sun, 26 May 2024 11:18:23 -0400 Subject: [PATCH 6/6] Update labeler.yml --- .github/labeler.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index dba28c2..cbdb46f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -9,15 +9,10 @@ AnyChange: - changed-files: - any-glob-to-any-file: '**' -## Add 'Documentation' label to any file changes within 'docs' or 'guides' folders +## Add 'Documentation' label to any file changes within 'docs' or 'guides' folders or '.md' files Documentation: - changed-files: - - any-glob-to-any-file: ['docs/**', 'guides/*'] - -# Add 'Documentation' label to any change to .md files within the entire repository -Documentation: -- changed-files: - - any-glob-to-any-file: '**/*.md' + - any-glob-to-any-file: ['docs/**', 'guides/*', '**/*.md'] # Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder source: