From 3f6fbcc59828a3c8a3b15669b221d73583013a0e Mon Sep 17 00:00:00 2001 From: utkarsh patrikar Date: Sun, 17 May 2026 01:07:03 +0530 Subject: [PATCH 1/2] feat: add auto-labeling and issue templates (#3) --- .github/ISSUE_TEMPLATE/bug_report.yml | 51 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature_request.yml | 35 +++++++++++++++ .github/issue-labeler.yml | 21 +++++++++ .github/labeler.yml | 31 +++++++++++++ .github/workflows/issue-labeler.yml | 28 ++++++++++++ .github/workflows/labeler.yml | 17 ++++++++ 7 files changed, 184 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/issue-labeler.yml create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/issue-labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..564b8a9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,51 @@ +name: Bug Report +description: File a bug report to help us improve +title: "[Bug]: " +labels: ["bug", "needs triage"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: textarea + id: description + attributes: + label: Bug Description + description: A clear and concise description of what the bug is. + placeholder: Bug description + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: Steps to Reproduce + description: How can we reproduce the issue? + placeholder: | + 1. Go to '...' + 2. Click on '....' + 3. Scroll down to '....' + 4. See error + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: What did you expect to happen? + validations: + required: true + - type: textarea + id: actual + attributes: + label: Actual Behavior + description: What actually happened? + validations: + required: true + - type: input + id: environment + attributes: + label: Environment + description: OS, Node version, CLI version + placeholder: e.g., macOS 14.4, Node v20.11.1, kdm v1.0.0 + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..9cd57b4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,35 @@ +name: Feature Request +description: Suggest an idea for this project +title: "[Feature]: " +labels: ["enhancement", "needs triage"] +body: + - type: textarea + id: problem + attributes: + label: Problem Description + description: Is your feature request related to a problem? Please describe. + validations: + required: true + - type: textarea + id: solution + attributes: + label: Proposed Solution + description: A clear and concise description of what you want to happen. + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: Alternatives Considered + description: A clear and concise description of any alternative solutions or features you've considered. + - type: textarea + id: context + attributes: + label: Additional Context + description: Add any other context or screenshots about the feature request here. + - type: checkboxes + id: work + attributes: + label: Would you like to work on this feature? + options: + - label: Yes, I would like to work on this feature! diff --git a/.github/issue-labeler.yml b/.github/issue-labeler.yml new file mode 100644 index 0000000..e770a0c --- /dev/null +++ b/.github/issue-labeler.yml @@ -0,0 +1,21 @@ +bug: + - "bug" + - "error" + - "broken" + - "fix" + - "crash" + - "not working" + +enhancement: + - "feature" + - "request" + - "add" + - "new" + - "improve" + - "enhancement" + +good first issue: + - "first timer" + - "beginner" + - "easy" + - "starter" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..21f39ff --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,31 @@ +documentation: + - changed-files: + - any-glob-to-any-file: ['README.md', '*.md'] + +ci: + - changed-files: + - any-glob-to-any-file: ['.github/workflows/**', '.github/**'] + +tests: + - changed-files: + - any-glob-to-any-file: ['src/__tests__/**'] + +docker: + - changed-files: + - any-glob-to-any-file: ['src/docker/**'] + +kubernetes: + - changed-files: + - any-glob-to-any-file: ['src/kubernetes/**', 'src/minikube/**'] + +ui: + - changed-files: + - any-glob-to-any-file: ['src/ui/**'] + +commands: + - changed-files: + - any-glob-to-any-file: ['src/commands/**'] + +build: + - changed-files: + - any-glob-to-any-file: ['package.json', 'package-lock.json', 'tsconfig.json'] diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml new file mode 100644 index 0000000..723410a --- /dev/null +++ b/.github/workflows/issue-labeler.yml @@ -0,0 +1,28 @@ +name: "Issue Labeler" +on: + issues: + types: [opened] + +permissions: + issues: write + contents: read + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: ".github/issue-labeler.yml" + + - name: Apply "needs triage" label + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['needs triage'] + }) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..2568418 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: ".github/labeler.yml" From 8e30a61381feb7d3a9b6c80a32a5da65092531ea Mon Sep 17 00:00:00 2001 From: utkarsh patrikar Date: Sun, 17 May 2026 01:23:59 +0530 Subject: [PATCH 2/2] chore: update issue and pull request labeler configurations and workflow dependencies --- .github/issue-labeler.yml | 3 +++ .github/labeler.yml | 15 ++++++++++++--- .github/workflows/issue-labeler.yml | 13 +------------ .github/workflows/labeler.yml | 3 ++- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/issue-labeler.yml b/.github/issue-labeler.yml index e770a0c..084ac8b 100644 --- a/.github/issue-labeler.yml +++ b/.github/issue-labeler.yml @@ -19,3 +19,6 @@ good first issue: - "beginner" - "easy" - "starter" + +needs triage: + - '*' diff --git a/.github/labeler.yml b/.github/labeler.yml index 21f39ff..272be85 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,10 +1,19 @@ documentation: - changed-files: - - any-glob-to-any-file: ['README.md', '*.md'] + - any-glob-to-any-file: + - 'docs/**/*' + - '**/*.md' -ci: +frontend: - changed-files: - - any-glob-to-any-file: ['.github/workflows/**', '.github/**'] + - any-glob-to-any-file: + - 'src/**/*' + - 'public/**/*' + +ci/cd: + - changed-files: + - any-glob-to-any-file: + - '.github/workflows/**/*' tests: - changed-files: diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml index 723410a..da6a996 100644 --- a/.github/workflows/issue-labeler.yml +++ b/.github/workflows/issue-labeler.yml @@ -11,18 +11,7 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: github/issue-labeler@v3 + - uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: ".github/issue-labeler.yml" - - - name: Apply "needs triage" label - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['needs triage'] - }) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 2568418..735a7da 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,5 +1,6 @@ name: "Pull Request Labeler" on: + # Safe to use pull_request_target: no code checkout, API-only labeler, minimal permissions pull_request_target: types: [opened, synchronize, reopened] @@ -11,7 +12,7 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v5 + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: ".github/labeler.yml"