fix: add missing formatItem and program imports in cli.test.ts#1265
Merged
lpcox merged 2 commits intoclaude/add-copilot-api-target-flagfrom Mar 12, 2026
Merged
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [66859677809] Fix failing GitHub Actions workflow TypeScript type check
fix: add missing formatItem and program imports in cli.test.ts
Mar 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a TypeScript type check CI failure by adding two missing imports (formatItem and program) to cli.test.ts. These symbols are exported from cli.ts and used in the test file but were not included in the import statement.
Changes:
- Added
formatItemandprogramto the import statement incli.test.tsto resolve the TypeScript compilation error.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
lpcox
added a commit
that referenced
this pull request
Mar 12, 2026
…c endpoint detection (#1264) * Initial plan * feat(proxy): add validation for --copilot-api-target flag Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * test: add docker-manager tests for COPILOT_API_TARGET Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * feat(proxy): handle GHEC domains in deriveCopilotApiTarget Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * Potential fix for pull request finding 'CodeQL / Log injection' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * docs: add enterprise configuration guide for GHEC/GHES Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * fix: add missing formatItem and program imports in cli.test.ts (#1265) * Initial plan * fix: add missing formatItem and program imports in cli.test.ts Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * fix: drop -f from curl to avoid GitHub API rate-limit flakiness (#1267) * Initial plan * fix: drop -f from curl to avoid GitHub API rate-limit flakiness Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> Co-authored-by: Landon Cox <landon.cox@microsoft.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This was referenced Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TypeScript type check CI was failing because
formatItemandprogramwere exported fromcli.tsbut omitted from the import statement incli.test.ts.Change
Added the two missing names to the existing import:
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.