diff --git a/docs/workflows/gh-agent-workflows/issue-triage.md b/docs/workflows/gh-agent-workflows/issue-triage.md index 5b92c16d..1e833bce 100644 --- a/docs/workflows/gh-agent-workflows/issue-triage.md +++ b/docs/workflows/gh-agent-workflows/issue-triage.md @@ -24,10 +24,9 @@ mkdir -p .github/workflows && curl -fsSL \ | Input | Description | Default | | --- | --- | --- | -| `additional-instructions` | Repo-specific instructions appended to the agent prompt. Use this to define label semantics for `classification-labels`. | `""` | +| `additional-instructions` | Repo-specific instructions appended to the agent prompt. | `""` | | `setup-commands` | Shell commands run before the agent starts | `""` | | `allowed-bot-users` | Allowlisted bot actor usernames (comma-separated) | `github-actions[bot]` | -| `classification-labels` | Comma-separated list of labels the agent may apply (e.g. `bug,needs-triage,enhancement`). If empty, no labels are applied. Define label semantics in `additional-instructions`. | `""` | ## Secrets @@ -39,7 +38,6 @@ mkdir -p .github/workflows && curl -fsSL \ ## Safe outputs - `add-comment` — post a triage analysis comment on the issue -- `add-labels` — apply labels from the configured `classification-labels` allowlist (max 3); semantics defined via `additional-instructions` ## Example workflow @@ -60,12 +58,8 @@ jobs: run: uses: elastic/ai-github-actions/.github/workflows/gh-aw-issue-triage.lock.yml@v0 # with: - # Configure which labels the agent may apply and define their semantics in additional-instructions. - # classification-labels: "bug,needs-triage,enhancement" - # additional-instructions: | - # - `bug`: Apply when the issue describes a clear defect or unexpected behavior. - # - `needs-triage`: Apply when more information is needed before the issue can be acted on. - # - `enhancement`: Apply when the issue describes a new feature or improvement request. + # setup-commands: | + # echo "Optional setup runs before triage begins" secrets: COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} # Optional: pass an ephemeral token (e.g. a GitHub App token) so that issue labels diff --git a/gh-agent-workflows/issue-triage/README.md b/gh-agent-workflows/issue-triage/README.md index 5bfa8d10..5849199d 100644 --- a/gh-agent-workflows/issue-triage/README.md +++ b/gh-agent-workflows/issue-triage/README.md @@ -26,10 +26,9 @@ See [example.yml](example.yml) for the full workflow file. | Input | Description | Required | Default | | --- | --- | --- | --- | -| `additional-instructions` | Repo-specific instructions appended to the agent prompt. Use this to define label semantics for `classification-labels`. | No | `""` | +| `additional-instructions` | Repo-specific instructions appended to the agent prompt. | No | `""` | | `setup-commands` | Shell commands run before the agent starts | No | `""` | | `allowed-bot-users` | Allowed bot actor usernames (comma-separated) | No | `github-actions[bot]` | -| `classification-labels` | Comma-separated list of labels the agent may apply (e.g. `bug,needs-triage,enhancement`). If empty, no labels are applied. Define label semantics in `additional-instructions`. | No | `""` | ## Secrets @@ -41,4 +40,3 @@ See [example.yml](example.yml) for the full workflow file. ## Safe Outputs - `add-comment` — post a triage analysis comment on the issue -- `add-labels` — apply labels from the configured `classification-labels` allowlist (max 3); semantics defined via `additional-instructions` diff --git a/gh-agent-workflows/issue-triage/example.yml b/gh-agent-workflows/issue-triage/example.yml index dbd55c9b..f94515cb 100644 --- a/gh-agent-workflows/issue-triage/example.yml +++ b/gh-agent-workflows/issue-triage/example.yml @@ -14,12 +14,8 @@ jobs: run: uses: elastic/ai-github-actions/.github/workflows/gh-aw-issue-triage.lock.yml@v0 # with: - # Configure which labels the agent may apply and define their semantics in additional-instructions. - # classification-labels: "bug,needs-triage,enhancement" - # additional-instructions: | - # - `bug`: Apply when the issue describes a clear defect or unexpected behavior. - # - `needs-triage`: Apply when more information is needed before the issue can be acted on. - # - `enhancement`: Apply when the issue describes a new feature or improvement request. + # setup-commands: | + # echo "Optional setup runs before triage begins" secrets: COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} # Optional: pass an ephemeral token (e.g. a GitHub App token) so that issue labels