Kynan Ware
44653c5aeb
Add example for --custom-agent usage
...
Added a usage example to the help text demonstrating how to create a task with a custom agent using the --custom-agent flag.
2025-10-31 16:18:10 -06:00
Kynan Ware
5d17666a69
Update error messages in job creation tests
2025-10-31 16:16:03 -06:00
Kynan Ware
591050a8d2
Update pkg/cmd/agent-task/capi/job.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-31 16:06:37 -06:00
Kynan Ware
0dcb1d1e43
Add shorthand flag for custom-agent option
...
Introduces the '-a' shorthand for the --custom-agent flag in the agent-task create command, improving CLI usability.
2025-10-31 15:59:23 -06:00
Kynan Ware
24885040cb
Fix: do not swallow job creation error
...
Reads the response body before decoding to allow multiple decoding attempts. Enhances error reporting by including HTTP status and error messages from both Job and JobError structures when job creation fails.
2025-10-31 15:54:01 -06:00
Kynan Ware
64de314640
Clarify custom agent flag description
...
Updated the help text for the --custom-agent flag to provide an example usage, making it clearer how to specify a custom agent for the task.
2025-10-31 15:10:03 -06:00
Kynan Ware
17085d3c5e
Add custom agent support to job creation
...
Introduces a 'customAgent' parameter to the CreateJob API, CLI options, and related mocks and tests.
2025-10-31 14:57:48 -06:00
Babak K. Shandiz
ba5c9af957
docs(api): add example for --input option
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-31 13:44:17 +00:00
Babak K. Shandiz
ad0252e845
docs(api): mention use of @<path> and @- for --field
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-31 13:35:20 +00:00
Kynan Ware
20c7bdc2a4
Merge pull request #11761 from luxass/gist-edit-large-file
...
fix(gist): add support for editing & viewing large files
2025-10-30 20:35:23 -06:00
Babak K. Shandiz
05986e4cb3
chore: apply go fix to remove deprecated // +build tags
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-30 21:10:45 +00:00
2003Aditya
15f01d43a4
fix: --interval flags docs in gh pr checks
2025-10-30 20:06:45 +00:00
Lucas
7db532aca0
test(gist/edit): add tests for single file edit and interactive multi-file selection
...
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
2025-10-30 18:50:49 +01:00
Babak K. Shandiz
898992dd39
docs(run list): mention pr checks in help docs
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-30 13:07:58 +00:00
Lucas
6c497e74df
test(gist): fix failing tests
2025-10-30 06:12:15 +01:00
Lucas
42238dc365
fix(gist): prevent fetching full content for already edited files
2025-10-30 05:55:53 +01:00
Lucas
c98c435800
fix(gist): only include files that have changed in request
...
There was some issues when sending the full list of files, some of them would be truncated.
2025-10-30 05:49:52 +01:00
Lucas
f8651f5e44
fix(gist): fetch full content for truncated files during editing
...
This change makes it only fetch the raw content, when we wanna edit the specific file.
2025-10-30 05:48:34 +01:00
Lucas Nørgård
cf7180379a
Merge branch 'trunk' into gist-edit-large-file
2025-10-30 04:18:26 +01:00
Kynan Ware
119085c66e
Merge pull request #12039 from Shion1305/shion/feat-12033
...
💡 (gh repo delete) Add warning when `--yes` is ignored without a repository, Closes : #12033
2025-10-29 11:30:29 -06:00
Shion Ichikawa
a7f14576aa
✅ (repo delete) remove comprehensive assertions on check stderr output
2025-10-29 08:47:34 +09:00
Jonathan Fisher
09617d315e
Fix typo in comment for gh issue develop branch checkout command
2025-10-28 16:13:24 -06:00
Shion Ichikawa
7083f6dda4
💡 (gh repo delete) Add warning when --yes is ignored without a repository, Closes : #12033
2025-10-29 03:13:51 +09:00
Trevor Rosen
0b1b5feff1
Merge pull request #11989 from cli/copilot/fix-gh-attestation-verification
...
Fix gh attestation verify to work when Public Good Instance of Sigstore is unavailable
2025-10-24 16:57:36 -05:00
Trevor Rosen
b808612769
Remove skipped tests
...
Signed-off-by: Trevor Rosen <trevrosen@github.com>
2025-10-24 13:45:16 -05:00
Trevor Rosen
b6013cf409
Make verifier choice more explicit
...
Signed-off-by: Trevor Rosen <trevrosen@github.com>
2025-10-24 13:42:58 -05:00
Kynan Ware
b90e39ea91
Merge pull request #8826 from lucasmelin/lucasmelin/add-pr-revert-command
...
feat: implement gh `pr revert`
2025-10-23 13:13:08 -06:00
Brian DeHamer
95719714d9
Merge pull request #11991 from cli/copilot/update-gh-release-verification
...
Use "release" sentinel value for release attestation verification
2025-10-23 09:14:11 -07:00
Lucas Melin
6db1441eb6
Return only basic pull request info when reverting a PR
...
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
2025-10-22 18:02:35 -04:00
Trevor Rosen
d5399b79b9
Merge branch 'trunk' into copilot/fix-gh-attestation-verification
2025-10-22 16:56:55 -05:00
Brian DeHamer
0579d74f6d
Merge pull request #11945 from cli/bdehamer/gh-release-create-docs
...
Improve docstring for release-create
2025-10-22 11:35:49 -07:00
Brian DeHamer
b7cea1d935
test fixup
...
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-10-22 08:56:13 -07:00
copilot-swe-agent[bot]
74ac20671c
Update release verify commands to use sentinel value
...
Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com>
2025-10-22 15:26:36 +00:00
copilot-swe-agent[bot]
b27889b76b
Make PGI verifier initialization non-fatal to allow GitHub attestation verification
...
Co-authored-by: trevrosen <1402+trevrosen@users.noreply.github.com>
2025-10-22 15:03:21 +00:00
Kynan Ware
31398fe765
Add test for non-interactive projects v1 unsupported
...
Introduces a test case to ensure that when editing pull requests non-interactively and projects v1 is unsupported, v1 project metadata is not fetched and only v2 project queries are made.
2025-10-21 19:09:14 -06:00
Kynan Ware
ec526bf72b
Inject Detector mock in edit command tests
...
Added Detector field with EnabledDetectorMock to EditOptions in issue and PR edit command tests to ensure feature detection logic is exercised during test runs. Also updated EditableOptionsFetch signature in pr/edit/edit_test.go to include projectsV1Support parameter for compatibility with shared.FetchOptions.
2025-10-21 15:55:42 -06:00
Kynan Ware
e373ad6c9f
Pass ProjectsV1Support to FetchOptions functions
...
Update FetchOptions and related function signatures to accept a ProjectsV1Support parameter, enabling conditional logic based on project support. This change improves flexibility for handling project fields in issue and PR editing flows.
2025-10-21 15:03:52 -06:00
Brian DeHamer
937f6d8c2e
improve docstring for release-create
...
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-10-16 11:54:05 -07:00
Babak K. Shandiz
5685b9a443
refactor(auth refresh): use PlainHttpClient instead of zero http.Client
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-13 16:51:13 +01:00
Babak K. Shandiz
365ca1a901
refactor(auth login): use PlainHttpClient for OAuth flow
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-13 16:51:11 +01:00
Babak K. Shandiz
2794f7b8d6
fix(factory): add PlainHttpClient to factory
...
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-10-13 16:42:18 +01:00
Kynan Ware
8840df2eb3
Fix agentTaskCmd to use repoResolvingCmdFactory
...
`agent-task` uses smart base repo func to fix bug with resolving upstream instead of local repo.
2025-10-10 10:39:52 -06:00
Kynan Ware
91c6bc609a
Add new displaying message to test expectation
...
Updated the Test_createRun test to expect a message indicating that session logs are being displayed for the job
2025-10-07 23:37:43 -06:00
Kynan Ware
a78bb5e899
Fix --follow not killing the progress indicator
...
Fixes --follow not stopping the progress indicator. Also includes a nice message to indicate what is happening because even after we create the agent task, there's a period of time where we poll and receive nothing as the task session starts. We want there to be some sort of feedback in that period of time to not make the user panic and think it has hanged.
2025-10-07 23:19:45 -06:00
Lucas Melin
ef7ac8caab
Address remaining PR comments for revert implementation
2025-10-06 13:27:45 -04:00
Lucas Melin
4f10a525bc
Adjust PR revert based on new acceptance criteria
...
Also adds test cases for the new acceptance criteria.
2025-10-06 13:27:45 -04:00
Lucas Melin
5368f409a7
Fix revert unit tests by using renamed helper
2025-10-06 13:27:45 -04:00
Lucas Melin
023a639c8c
feat: include revert PR info in message output
2025-10-06 13:25:31 -04:00
Lucas Melin
60b6a5eed5
feat: implement pr revert
2025-10-06 13:25:31 -04:00
Kynan Ware
67bf27bf0c
Merge pull request #11835 from cli/kw/do-not-request-org-teams-for-reviewer-set
...
`gh pr edit`: Only fetch org teams for reviewers when required
2025-10-03 12:25:55 -06:00