Trigger the issue triage workflow for a specific issue. Usage: /triage {issue_number}
Trigger the automated issue triage GitHub Actions workflow for the specified issue.
Trigger the Issue Triage workflow via workflow_dispatch for issue number $ARGUMENTS.
# Check the argument is a number
issue_number="$ARGUMENTS"
if ! [[ "$issue_number" =~ ^[0-9]+$ ]]; then
echo "Error: provide an issue number, e.g. /triage 275"
exit 1
fi
# Verify the issue exists
gh issue view "$issue_number" --json number,title,state,labels --jq '"#\(.number): \(.title) [\(.state)]"'
Check if the issue already has a triage label. If so, inform the user and ask whether to re-triage (which requires removing the existing triage label first).
for label in "triage: investigated" "triage: needs-info" "triage: duplicate" "triage: not-actionable" "triage: needs-human"; do
gh issue edit "$issue_number" --remove-label "$label" 2>/dev/null || true
done
gh workflow run "Issue Triage" -f issue_number="$issue_number"
# Wait for the run to appear
sleep 5
run_id=$(gh run list --workflow issue-triage.yml --limit 1 --json databaseId --jq '.[0].databaseId')
echo "Workflow run: https://github.com/aaddrick/claude-desktop-debian/actions/runs/$run_id"
# Watch it
gh run watch "$run_id"
After the run completes, show the issue's updated labels and the latest comment:
gh issue view "$issue_number" --json labels --jq '[.labels[].name]'
gh issue view "$issue_number" --json comments --jq '.comments[-1].body'