Conversation
…prevent duplicate issue creation Co-authored-by: zaxlofful <33877007+zaxlofful@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
simplewish | 90c0960 | Jan 02 2026, 10:53 PM |
|
@copilot Very close, but not quite right. If you examine the output more closely, it says: "Attempting gh agent-task create using /tmp/tmp.7Umcxretc2 Usage: gh agent-task create [] [flags] Flags: gh agent-task create failed" Which is the helper text from gh agent-task create, which thus means that the function is available, but it wasn't used right. From this it seems that there is no title, so the call just needs to be reduced to work correctly. So intead of removing it entirely, you need to keep it but use the right parameters. We also want the fall back just in case, because we want additional failure modes to be automatic. Additionally, when you look at the output of the next step, ytou' |
…file, remove duplicate issue creation Co-authored-by: zaxlofful <33877007+zaxlofful@users.noreply.github.com>
Fixed in commit 90c0960. Changed to use |
There was a problem hiding this comment.
Pull request overview
This PR fixes critical bugs in the Daily TODO Check workflow related to incorrect CLI flags and duplicate issue creation logic.
Key Changes:
- Corrects
gh agent-task createcommand to use the valid--from-fileflag instead of non-existent--titleand--body-fileflags - Adds
GH_TOKENenvironment variable for proper authentication in the agent-task step - Consolidates duplicate
gh issue createcalls into a single call with URL parsing to prevent creating multiple issues for the same TODO
The Daily TODO Check workflow was using incorrect flags for
gh agent-task createand had logic that would create duplicate issues when the--jsonflag failed.Changes
Fixed
gh agent-task createcommand: Changed from using invalid--titleand--body-fileflags to the correct--from-fileflag:Added GH_TOKEN authentication: Added
GH_TOKENenvironment variable to the agent-task step for proper authenticationFixed duplicate issue creation: Consolidated two
gh issue createcalls into one:Net result: Workflow now correctly uses
gh agent-taskwhen available with proper flags and creates exactly one issue per TODO when falling back to regular issue creation.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.