Enable /agent agentic-workflows debug handling in Issue Triage workflow#3019
Enable /agent agentic-workflows debug handling in Issue Triage workflow#3019
/agent agentic-workflows debug handling in Issue Triage workflow#3019Conversation
|
@Copilot: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: db27c437d5f4d373671bb2b5 |
…urce Co-authored-by: burn2delete <147004+burn2delete@users.noreply.github.com>
/agent agentic-workflows debug handling in Issue Triage workflow
There was a problem hiding this comment.
Pull request overview
This pull request enables the Issue Triage agentic workflow to respond to /agent agentic-workflows debug commands for debugging workflow failures. The workflow source file (.md) has been updated to add a new trigger, read permissions for workflow actions, and tooling to inspect workflow metadata.
Changes:
- Added
slash_commandtrigger to accept/agentcommands in issue comments - Added
actions: readpermission andactionstoolset to enable workflow metadata inspection - Updated agent prompt to handle workflow debugging requests
Comments suppressed due to low confidence (1)
.github/workflows/issue-triage.md:47
- The workflow now has two distinct trigger paths (new issues and
/agent agentic-workflows debugcommands), but the "Triage process" section only describes the issue triage flow. Consider adding a separate section or conditional instructions to clarify the workflow behavior when triggered by the debug command. For example, you might want to add something like "When triggered by/agent agentic-workflows debug, skip the standard triage process and focus on workflow debugging instead."
## Triage process
1. Read the triggering issue title, body, and existing labels.
2. If a type label is already present, keep it and do not add another type label.
3. If no type label is present, choose the best fit based on the issue content and add it.
4. If the issue lacks required details (for example, a bug report missing reproduction steps or environment details), add a comment asking for the missing information.
5. If the issue is a question and can be answered quickly, provide a brief answer with a link to the docs at https://go.apollo.dev/r/docs.
6. Avoid unnecessary comments; only comment when you need more information or have a clear next step.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| slash_command: | ||
| name: agent | ||
| events: [issue_comment] | ||
| permissions: | ||
| issues: read | ||
| actions: read | ||
| roles: all | ||
| network: | ||
| allowed: | ||
| - "api.github.com" | ||
| tools: | ||
| github: | ||
| toolsets: [issues, labels] | ||
| toolsets: [issues, labels, actions] | ||
| agentic-workflows: true |
There was a problem hiding this comment.
The lock file .github/workflows/issue-triage.lock.yml needs to be regenerated to reflect these changes to the source file. According to line 18-19 of the lock file, you need to run gh aw compile after editing the .md file.
The current lock file still has:
on.issues.types: [opened]only (missing theslash_commandtrigger)permissions: {}(missingactions: read)GITHUB_TOOLSETS: "issues,labels"(missingactions)- The old frontmatter-hash
Without regenerating the lock file, the changes in this PR won't actually take effect.
The issue triage agent workflow could not be triggered via the
/agent ...command path for workflow debugging. This change wires the workflow to accept/agent agentic-workflows debugand gives the agent the minimal read access/tools required to inspect workflow failures.Trigger surface update
on.slash_commandto the agentic workflow source so issue comments with/agentcan invoke the workflow.issue_commentevents.Workflow-debug capability enablement
permissions.actions: readso the agent can read workflow/job/run metadata.tools.agentic-workflows.actionsalongside existingissues/labels.Prompt behavior update
/agent agentic-workflows debugby summarizing recent workflow failures in a concise comment.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.