Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
404 changes: 62 additions & 342 deletions README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions __tests__/copilot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as core from '../__fixtures__/core.js'

vi.mock('@actions/core', () => core)

const {copilotInference, buildCopilotPrompt, DEFAULT_GITHUB_MODELS_MODEL} = await import('../src/copilot.js')
const {copilotInference, buildCopilotPrompt} = await import('../src/copilot.js')

type RunResult = {stdout: string; stderr: string; exitCode: number | null}

Expand Down Expand Up @@ -66,7 +66,7 @@ describe('copilotInference', () => {
{role: 'system', content: 'Be brief.'},
{role: 'user', content: 'Say hi.'},
],
model: DEFAULT_GITHUB_MODELS_MODEL,
model: 'gpt-4.1',
},
spawner,
)
Expand All @@ -79,8 +79,8 @@ describe('copilotInference', () => {
expect(args[1]).toBe('Be brief.\n\nSay hi.')
expect(args).toContain('--no-ask-user')
expect(args).toContain('-s')
// Default github-models model should NOT be forwarded
expect(args).not.toContain('--model')
expect(args).toContain('--model')
expect(args).toContain('gpt-4.1')
})

it('forwards a non-default model via --model', async () => {
Expand Down
169 changes: 0 additions & 169 deletions __tests__/helpers-inference.test.ts

This file was deleted.

Loading