Repository navigation
[duplicate-code] Duplicate Code: Identical timeout parsers in tools_parser.go #67004
Description
Activity
- addedcookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!
on Oct 8, 2026 github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 12.6 AIC · ⌖ 9.93 AIC · ⊞ 13.5K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 21.3 AIC · ⌖ 12.1 AIC · ⊞ 13.3K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 31 AIC · ⌖ 9.03 AIC · ⊞ 13.3K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actionsCaution
agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.Details
Potential security threats were detected in the agent output.
Review the workflow run logs for details.
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 24.5 AIC · ⌖ 16.4 AIC · ⊞ 13.3K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 12.4 AIC · ⌖ 8.06 AIC · ⊞ 12.6K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 10.4 AIC · ⌖ 9.67 AIC · ⊞ 12.6K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 12.3 AIC · ⌖ 10.6 AIC · ⊞ 12.6K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 10.8 AIC · ⌖ 7.92 AIC · ⊞ 12.6K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actions🍪 Issue Monster selected this for Copilot
Ive identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
🍪 Om nom nom by Issue Monster · pi · gpt54 · 28.7 AIC · ⌖ 6.88 AIC · ⊞ 12.6K · ◷
github-actions commented
on Oct 10, 2026 on Oct 10, 2026 – with GitHub ActionsContributorAuthorMore actionsThis issue was automatically closed because it expired on 2026-10-10T21:57:41.351Z.
Closed by Workflow
🔍 Duplicate Code Detected: Identical
TemplatableInt32timeout parsersAnalysis of commit 8c2337a
Assignee:
@copilotSummary
parseTimeoutToolandparseStartupTimeoutToolinpkg/workflow/tools_parser.gohave byte-for-byte identical bodies (24 normalized lines each). They differ only in name and doc comment.Duplication Details
Pattern: Identical numeric/expression type-switch parser
pkg/workflow/tools_parser.go(lines 591-616,parseTimeoutTool)pkg/workflow/tools_parser.go(lines 620-645,parseStartupTimeoutTool)Impact Analysis
Refactoring Recommendations
parseTemplatableInt32(val any) *TemplatableInt32and have both call sites use it (drop one function, or makeparseStartupTimeoutTooldelegate toparseTimeoutTool).Implementation Checklist
make fmtandmake test-unitAnalysis Metadata
pkg/non-test.gofiles