Add agent assignment option to failure issue template#16771
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This pull request updates the agent failure issue template to provide two options for resolving workflow failures: assigning the issue to the agentic-workflows agent for automatic resolution (recommended), or manually invoking the agent via command.
Changes:
- Added a two-option structure to the "Action Required" section with Option 1 (agent assignment) as the primary path and Option 2 (manual invocation) as the secondary path
- Updated the test mock to reflect the new template structure
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| actions/setup/md/agent_failure_issue.md | Added two-option structure for resolving agent failures with agent assignment as the primary option |
| actions/setup/js/handle_agent_failure.test.cjs | Updated mock template to match the new structure in the actual template file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ### Action Required | ||
|
|
||
| **Option 1: Assign this issue to agent using agentic-workflows** |
There was a problem hiding this comment.
Missing article before "agent". The phrase "Assign this issue to agent" should be "Assign this issue to the agent" for grammatical correctness.
| **Option 1: Assign this issue to agent using agentic-workflows** | |
| **Option 1: Assign this issue to the agent using agentic-workflows** |
|
|
||
| ### Action Required | ||
|
|
||
| **Option 1: Assign this issue to agent using agentic-workflows** |
There was a problem hiding this comment.
Missing article before "agent". The phrase "Assign this issue to agent" should be "Assign this issue to the agent" for grammatical correctness. This should match the correction made in the template file.
The agent failure issue template now suggests assigning the issue to
agentic-workflowsagent as the primary resolution path, with manual invocation as a secondary option.Changes
actions/setup/md/agent_failure_issue.md): Added two-option structure in "Action Required" section/agentcommandactions/setup/js/handle_agent_failure.test.cjs): Updated mock template to match new structureTemplate diff
The template is rendered at runtime by the conclusion job when agent failures occur.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -c=4 -nolocalimports git t-13�� k/gh-aw/gh-aw/.github/workflows/auto-triage-issues.md Test User(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v3/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha _.a(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha se 094718/b061/vet.cfg 094718/b167/vet.cfg(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha _.a origin 094718/b169/vet.cfg(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha uts.version -trimpath /usr/bin/git -p github.com/githurev-parse -lang=go1.25 git rev-�� --git-dir -goversion /usr/bin/git -c=4 -nolocalimports -importcfg git(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v5/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha te 'scripts/**/*.js' --ignore-paremote.origin.url cfg 64/pkg/tool/linux_amd64/vet(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha v1.0.0 /tmp/go-build543094718/b264/vet.cfg pts.test(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha user.email test@example.com /usr/bin/git '**/*.ts' '**/*.git --local x_amd64/vet git conf�� user.name Test User /usr/bin/git --local pull.rebase x_amd64/vet git(http block)https://api.github.com/repos/actions/github-script/git/ref/tags/v8/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha pare.go mat.go it(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha th .prettierigno-errorsas(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha vaScript247418417/001/test-frontmatter-with-nested-objects.md Update agent failure issue template to suggest assigning issue tgithub.com/github/gh-aw/pkg/parsrev-parse /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet(http block)https://api.github.com/repos/actions/setup-node/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha 44 Update agent failure issue template to suggest assigning issue t-test.run=^Test 094718/b171/vet.cfg(http block)https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts/usr/bin/gh gh run download 1 --dir test-logs/run-1(http block)https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts/usr/bin/gh gh run download 12345 --dir test-logs/run-12345 -n x_amd64/vet **/*.go --hidden --glob x_amd64/vet push�� te '**/*.cjs' '*go1.25.0 cfg 64/pkg/tool/linu-nolocalimports(http block)https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts/usr/bin/gh gh run download 12346 --dir test-logs/run-12346(http block)https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts/usr/bin/gh gh run download 2 --dir test-logs/run-2(http block)https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts/usr/bin/gh gh run download 3 --dir test-logs/run-3(http block)https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts/usr/bin/gh gh run download 4 --dir test-logs/run-4 nternal/testdeps-c=4 x_amd64/compile(http block)https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts/usr/bin/gh gh run download 5 --dir test-logs/run-5(http block)https://api.github.com/repos/github/gh-aw/actions/workflows/usr/bin/gh gh workflow list --json name,state,path json' --ignore-p-errorsas(http block)/usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100(http block)/usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6(http block)https://api.github.com/repos/github/gh-aw/contents/.github%2Fworkflows%2Faudit-workflows.md/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/dist/workers/forks.js(http block)https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0/usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha rite '**/*.cjs' @{u} --others 64/pkg/tool/linux_amd64/vet(http block)https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999/usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha ty-test.md -collect-logs 64/pkg/tool/linux_amd64/vet(http block)https://api.github.com/repos/nonexistent/repo/actions/runs/12345/usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion(http block)https://api.github.com/repos/owner/repo/actions/workflows/usr/bin/gh gh workflow list --json name,state,path --repo owner/repo es/.bin/sh ame(http block)/usr/bin/gh gh workflow list --json name,state,path --repo owner/repo ules/.bin/sh ame(http block)https://api.github.com/repos/owner/repo/contents/file.md/tmp/go-build543094718/b368/cli.test /tmp/go-build543094718/b368/cli.test -test.testlogfile=/tmp/go-build543094718/b368/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true(http block)https://api.github.com/repos/test-owner/test-repo/actions/secrets/usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name json' --ignore-p-errorsas(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.