Make hooks Forgejo-native (dual-stack GitHub + Forgejo) #1
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
All hooks use
ghCLI which only works with GitHub repos. Forgejo repos (like basketball-api) bypass all enforcement.Solution
Update hooks to detect whether a repo remote points to GitHub or Forgejo, and use the appropriate API.
Hooks to update
check-issue.sh— validate issues via Forgejo API when remote is Forgejoremind-review-loop.sh— trigger for Forgejo PRs tooblock-pr-merge.sh— intercept Forgejo PR mergesblock-main-commits.sh— already git-native, verify it worksforgejo-helper.sh— shared functions for Forgejo API callsNotion SOPs to update
Related: PROJ-17 Basketball Program SaaS (first Forgejo-deployed service)