The open source coding agent.
TypeScript
ci: auto label web
Aiden Clinec1f9249c8436
diff --git a/.github/workflows/auto-label-tui.yml b/.github/workflows/auto-label-tui.ymlindex 2b5379b81d0..834562e17f6 100644--- a/.github/workflows/auto-label-tui.yml+++ b/.github/workflows/auto-label-tui.yml@@ -11,7 +11,7 @@ jobs:contents: readissues: writesteps:- - name: Add opentui label+ - name: Auto-label and assign issuesuses: actions/github-script@v7with:github-token: ${{ secrets.GITHUB_TOKEN }}@@ -20,10 +20,32 @@ jobs:const title = issue.title;const description = issue.body || '';+ // Check for web/desktop keywords+ const webPattern = /\b(web|desktop)\b/i;+ const isWebRelated = webPattern.test(title) || webPattern.test(description);+// Check for version patterns like v1.0.x or 1.0.xconst versionPattern = /[v]?1\.0\./i;+ const isVersionRelated = versionPattern.test(title) || versionPattern.test(description);- if (versionPattern.test(title) || versionPattern.test(description)) {+ if (isWebRelated) {+ // Add web label+ await github.rest.issues.addLabels({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: issue.number,+ labels: ['web']+ });++ // Assign to adamdotdevin+ await github.rest.issues.addAssignees({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: issue.number,+ assignees: ['adamdotdevin']+ });+ } else if (isVersionRelated) {+ // Only add opentui if NOT web-relatedawait github.rest.issues.addLabels({owner: context.repo.owner,repo: context.repo.repo,