Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/issue-triage.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion .github/workflows/issue-triage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ permissions:
pull-requests: read

tools:
bash: [cat, find, grep]
bash: [cat, find, grep, jq]
github:
min-integrity: none

Expand Down Expand Up @@ -116,6 +116,25 @@ Do NOT post intermediate findings. Do NOT post separate comments for
area detection, duplicate checking, or environment validation.
Everything goes into the single triage summary at the end.

### Safe-output preparation
Comment thread
priyankatiwari08 marked this conversation as resolved.
Resolved

Every successful safe-output call queues a real action and consumes its
per-run allowance. Never call `add_comment` with test, placeholder, diagnostic,
or partial content, even to check whether the tool works.

Finish the analysis and prepare the complete summary before calling
`add_comment`. When using the `safeoutputs` CLI, inspect
`safeoutputs add_comment --help` to confirm its arguments without consuming
the allowance. The target argument is `item_number`, not `issue_number`.
For a multi-line summary saved to a temporary file, use the allowed `jq -Rs`
command to construct the JSON payload with `item_number` and `body`, then
submit it once through `safeoutputs add_comment .`.
Comment thread
cheenamalhotra marked this conversation as resolved.
Resolved

If preparation or submission fails, inspect the error before retrying.
Do not repeatedly retry a denied command or probe with a write. If the
failure cannot be resolved with the available tools, call `report_incomplete`
with the actual error and stop without submitting placeholder content.

---

## Label-managed state
Expand Down
Loading