Skip to content

[pull] trunk from cli:trunk - #206

Merged
pull[bot] merged 5 commits into
arc675:trunkfrom
cli:trunk
Aug 4, 2026
Merged

[pull] trunk from cli:trunk#206
pull[bot] merged 5 commits into
arc675:trunkfrom
cli:trunk

Conversation

@pull

@pull pull Bot commented Aug 4, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

williammartin and others added 5 commits August 4, 2026 15:42
The X-Oauth-Scopes response header is comma-space separated, so splitting
on "," alone left a leading space on every element but the first. Since
the API returns scopes in sorted order, "workflow" was effectively never
first and the check returned false for every OAuth token.

The guard on the 404 path therefore never held, so every 404 from
POST /repos/{owner}/{repo}/releases was rewritten into a "workflow" scope
hint, masking the real cause (missing repo, typo, no push access).

Trim each element before comparing, matching generateScopesSuggestion in
api/client.go. The existing test fixtures used unspaced scope lists,
which is why this shipped, so they now use realistic spacing.

Fixes #14063

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 38e2ccc8-92eb-4795-849f-2f519e0040b2
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 38e2ccc8-92eb-4795-849f-2f519e0040b2
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 598c3576-22dc-4d7f-a72d-4f84922174a1
Copilot-Session: d5151527-3286-43fd-a420-38f496a076fa
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 598c3576-22dc-4d7f-a72d-4f84922174a1
Copilot-Session: d5151527-3286-43fd-a420-38f496a076fa
Copilot-Session: a237433f-9657-4224-bad4-c4dc1c0fdc31
Route release creation through api.Client
@pull pull Bot locked and limited conversation to collaborators Aug 4, 2026
@pull pull Bot added the ⤵️ pull label Aug 4, 2026
@pull
pull Bot merged commit c6f4067 into arc675:trunk Aug 4, 2026
13 of 15 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant