mirror of
https://github.com/cline/cline.git
synced 2026-09-21 05:10:09 +08:00
* Improve bug report form: rename surface dropdown, add IDE/CLI diagnostics Rename the 'Plugin Type' dropdown to 'Cline Surface' since CLI is not a plugin; the option values keep each choice unambiguous. Add an 'IDE / CLI Diagnostics' field with per-surface copy-paste steps for About info (VSCode Help/About, JetBrains Help/About Copy button) and a CLI exception using 'cline --version'. System Information is left as-is; minor overlap is acceptable. * Update repo-label-issues workflow for renamed Cline Surface field The auto-labeler matches the rendered '### Plugin Type' heading. Since the form label was renamed to 'Cline Surface', update the three regexes so JetBrains/VS Code/CLI labels keep applying.
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
name: repo-label-issues
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, edited]
|
|
|
|
jobs:
|
|
label:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const body = context.payload.issue.body || '';
|
|
const labels = context.payload.issue.labels.map(l => l.name);
|
|
|
|
// Check if JetBrains Plugin is selected
|
|
if (body.match(/###\s*Cline Surface\s*\n+JetBrains Plugin/i)) {
|
|
if (!labels.includes('JetBrains')) {
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['JetBrains']
|
|
});
|
|
}
|
|
}
|
|
|
|
// Check if VSCode Extension is selected
|
|
if (body.match(/###\s*Cline Surface\s*\n+VSCode Extension/i)) {
|
|
if (!labels.includes('VS Code')) {
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['VS Code']
|
|
});
|
|
}
|
|
}
|
|
|
|
// Check if CLI is selected
|
|
if (body.match(/###\s*Cline Surface\s*\n+CLI/i)) {
|
|
if (!labels.includes('CLI')) {
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['CLI']
|
|
});
|
|
}
|
|
}
|
|
|
|
// Check if beta version checkbox is checked
|
|
if (body.includes('- [X] I am using a beta version of Cline') || body.includes('- [x] I am using a beta version of Cline')) {
|
|
if (!labels.includes('beta')) {
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['beta']
|
|
});
|
|
}
|
|
}
|