fix: spell out Forgejo token scopes + defensive onboarding handler #7
No reviewers
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor!7
Loading…
Reference in a new issue
No description provided.
Delete branch "devel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two related fixes from the first deploy:
Token scope docs were misleading. Said "scopes for: read:user,
repository (issue, PR, comment, label, assign)" implying that
repositorycovers issue operations. It doesn't. Forgejo splitswrite:repository(content/PR ops) andwrite:issue(issuecreate/comment/label/assign/close) into separate scopes. The
actually-required set is three scopes:
Missing write:issue is what blew up the first onboarding-ticket
attempt with a 403. docs/setup.md and .env.example both updated
to spell this out explicitly so the next operator doesn't repeat
the mistake.
handle_onboarding_failure killing the tick on any internal API
error. If filing the onboarding ticket failed (token scope, repo
permissions, issues-disabled), the whole tick exited non-zero and
the harness lost the rest of discovery. Wrapping the call site
with
|| log "warning ..."so one bad repo logs and continuesrather than blowing up everything.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com