diff options
| author | Aiden Cline <[email protected]> | 2025-10-31 14:55:33 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-10-31 14:55:33 -0500 |
| commit | e249b41513261456bda8d28ab2d90b24b73a7c77 (patch) | |
| tree | ac42e1f19c7eaa8bc80bcb047e76ab064f7f3e67 | |
| parent | 9021dd60a1715d43717571ffa45c6097e3f01e3d (diff) | |
| download | opencode-e249b41513261456bda8d28ab2d90b24b73a7c77.tar.gz opencode-e249b41513261456bda8d28ab2d90b24b73a7c77.zip | |
ci: autolabel action
| -rw-r--r-- | .github/workflows/auto-label-tui.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/auto-label-tui.yml b/.github/workflows/auto-label-tui.yml new file mode 100644 index 000000000..333b72dbc --- /dev/null +++ b/.github/workflows/auto-label-tui.yml @@ -0,0 +1,33 @@ +name: Auto-label TUI Issues + +on: + issues: + types: [opened] + +jobs: + auto-label: + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + steps: + - name: Add opentui label + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const issue = context.payload.issue; + const title = issue.title; + const description = issue.body || ''; + + // Check for version patterns like v1.0.x or 1.0.x + const versionPattern = /\b[v]?1\.0\.[x\d]\b/i; + + if (versionPattern.test(title) || versionPattern.test(description)) { + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + labels: ['opentui'] + }); + } |
