Modern Apps git

← Modern-Apps.git

assign issues with app tags

Commit
d3bffa3a5abed521691f203aec5c11e5d458fdbc
Author
Vayun <[email protected]>
When
2026-01-15 21:28 UTC (10 months ago)
Parents
344e22d

Diff

.github/ISSUE_TEMPLATE/bug_report.yml
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex 1f5397280f..47e90a0cb5 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -1,14 +1,28 @@ name: 🐛 Bug Report description: Report a bug or crash in a specific app.-title: "[bug] [<app-name>]: "+title: "[bug]: " labels: ["bug"] body:-  - type: input+  - type: dropdown     id: app_name     attributes:       label: App Name-      description: Enter the name of the app where the bug occurs.-      placeholder: e.g., calendar, contacts, pdf, ...+      description: Which app is experiencing the issue?+      options:+        - pdf+        - openassistant+        - crypto+        - chess+        - calendar+        - contacts+    validations:+      required: true+  - type: input+    id: version+    attributes:+      label: App Version+      description: What version of the app are you running? (e.g., v1.0.2)+      placeholder: vX.X.X     validations:       required: true   - type: textarea@@ -23,10 +37,6 @@ body:     attributes:       label: Steps to Reproduce       description: What specific steps cause the bug to happen?-      placeholder: |-        1. Open the app-        2. Click on '...'-        3. See error...     validations:       required: true   - type: textarea
.github/ISSUE_TEMPLATE/feature_request.yml
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.ymlindex 20ed30dbdd..14a059472c 100644--- a/.github/ISSUE_TEMPLATE/feature_request.yml+++ b/.github/ISSUE_TEMPLATE/feature_request.yml@@ -1,14 +1,20 @@ name: ✨ Feature Request description: Suggest a new idea for a specific app.-title: "[feat] [<app-name>]: "+title: "[feat]: " labels: ["enhancement"] body:-  - type: input+  - type: dropdown     id: app_name     attributes:       label: App Name-      description: Enter the name of the app this request is for.-      placeholder: e.g., calendar, contacts, pdf, ...+      description: Which app is this feature for?+      options:+        - pdf+        - openassistant+        - crypto+        - chess+        - calendar+        - contacts     validations:       required: true   - type: textarea
.github/workflows/issue_labeler.yml
diff --git a/.github/workflows/issue_labeler.yml b/.github/workflows/issue_labeler.ymlnew file mode 100644index 0000000000..864a6f1870--- /dev/null+++ b/.github/workflows/issue_labeler.yml@@ -0,0 +1,35 @@+name: "Precise Issue App Labeler"+on:+  issues:+    types: [opened]++jobs:+  add-labels:+    runs-on: ubuntu-latest+    permissions:+      issues: write+    steps:+      - name: Extract App Name and Label+        uses: actions/github-script@v7+        with:+          script: |+            const body = context.payload.issue.body;+            +            // This regex finds the text immediately following the "### App Name" header+            // It accounts for potential whitespace and newlines+            const match = body.match(/### App Name\s+([\s\S]*?)(?:\n\n|###|$)/);+            +            if (match && match[1]) {+              const selectedApp = match[1].trim().toLowerCase();+              const validApps = ['pdf', 'openassistant', 'crypto', 'chess', 'calendar', 'contacts'];+            +              if (validApps.includes(selectedApp)) {+                await github.rest.issues.addLabels({+                  issue_number: context.issue.number,+                  owner: context.repo.owner,+                  repo: context.repo.repo,+                  labels: [selectedApp]+                });+                console.log(`Successfully added label: ${selectedApp}`);+              }+            }\ No newline at end of file