chg: surface auth/permission hints on 401 and 403 #9

Merged
heiko merged 1 commit from x into master 2026-05-17 01:43:13 +02:00
Owner

API errors at 401 and 403 now append a short hint: 401 points to
git config fj.token / the credential helper; 403 points to the
token's scope settings in Forgejo. Forgejo has no token-introspection
endpoint, so a pre-flight scope check isn't possible — surfacing a
clearer message after the API call is the next-best thing for users
hitting "create PR/issue" with a token missing write:repository,
write:issue, etc.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
ius:ai:claude-opus-4-7

API errors at 401 and 403 now append a short hint: 401 points to `git config fj.token` / the credential helper; 403 points to the token's scope settings in Forgejo. Forgejo has no token-introspection endpoint, so a pre-flight scope check isn't possible — surfacing a clearer message after the API call is the next-best thing for users hitting "create PR/issue" with a token missing write:repository, write:issue, etc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> ius:ai:claude-opus-4-7
chg: surface auth/permission hints on 401 and 403
Some checks failed
mod-nag (Push) / mod-nag (push) Has been cancelled
4c6c9558c0
API errors at 401 and 403 now append a short hint: 401 points to
`git config fj.token` / the credential helper; 403 points to the
token's scope settings in Forgejo. Forgejo has no token-introspection
endpoint, so a pre-flight scope check isn't possible — surfacing a
clearer message after the API call is the next-best thing for users
hitting "create PR/issue" with a token missing write:repository,
write:issue, etc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ius:ai:claude-opus-4-7
heiko merged commit 681c55a554 into master 2026-05-17 01:43:13 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
heiko/fj!9
No description provided.