ci: add action to automate issue / pr labeling (#470)

Andrey Nering created

Change summary

.github/labeler.yml                 | 41 +++++++++++++++++++++++++++++++
.github/workflows/issue-labeler.yml | 22 ++++++++++++++++
2 files changed, 63 insertions(+)

Detailed changes

.github/labeler.yml 🔗

@@ -0,0 +1,41 @@
+"area: diff":
+  - "/diff/i"
+"area: images":
+  - "/image/i"
+"area: lsp":
+  - "/lsp/i"
+"area: mcp":
+  - "/mcp/i"
+"area: mouse":
+  - "/mouse/i"
+  - "/scroll/i"
+"area: permissions":
+  - "/permission/i"
+"area: session":
+  - "/session/i"
+"area: themes":
+  - "/theme/i"
+"area: tools":
+  - "/tool/i"
+"provider: anthropic / claude":
+  - "/anthropic/i"
+  - "/claude/i"
+"provider: aws bedrock":
+  - "/aws/i"
+  - "/bedrock/i"
+"provider: google gemini":
+  - "/gemini/i"
+"provider: google vertex":
+  - "/vertex/i"
+"provider: grok":
+  - "/grok/i"
+"provider: kimi":
+  - "/kimi/i"
+"provider: ollama":
+  - "/ollama/i"
+  - "/llama/i"
+"provider: openai / chatpgt":
+  - "/openai/i"
+  - "/gpt/i"
+"provider: openrouter":
+  - "/openrouter/i"

.github/workflows/issue-labeler.yml 🔗

@@ -0,0 +1,22 @@
+name: Issue Labeler
+
+on:
+  issues:
+    types: [opened]
+  pull_request:
+    types: [opened]
+
+permissions:
+  issues: write
+  contents: read
+
+jobs:
+  triage:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: github/issue-labeler@v3.4
+        with:
+          configuration-path: .github/labeler.yml
+          enable-versioned-regex: 0
+          include-title: 1
+          repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}