Skip to content

Conversation

@babakks
Copy link
Member

@babakks babakks commented Sep 22, 2025

A/C verification

Given I don't have write permissions on repo OWNER/REPO
When I run gh agent-task create --repo OWNER/REPO <TASK-DESCRIPTION>
Then I get a proper message (instead of JSON unmarshalling error)

Confirmed:

$ gh agent-task create --repo OWNER/REPO 'create a text file with lorem ipsum'
failed to create job: 401 Unauthorized
exit status 1

…JSON

Signed-off-by: Babak K. Shandiz <babakks@github.com>
@babakks babakks requested a review from a team as a code owner September 22, 2025 12:02
@babakks babakks requested review from BagToad and removed request for a team September 22, 2025 12:02
@babakks babakks merged commit ecb236b into github-cli-epic-990 Sep 22, 2025
9 of 10 checks passed
@babakks babakks deleted the babakks/display-proper-error-in-agent-task-create branch September 22, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants