feat(skills): add Gogs support to /rebase and /reviewrebase#3
Draft
troglodyne-bot wants to merge 1 commit into
Draft
feat(skills): add Gogs support to /rebase and /reviewrebase#3troglodyne-bot wants to merge 1 commit into
troglodyne-bot wants to merge 1 commit into
Conversation
Both skills now detect Gogs PR URLs (KOAN_GOGS_HOST-prefixed) before falling through to GitHub handling: - /rebase: uses GogsForge.pr_view() to fetch headRefName for the branch prefix ownership check (mirrors the is_own_pr GitHub path) - /reviewrebase: extracts Gogs PR URL via gogs_url_parser.search_pr_url and queues both /review + /rebase missions (same combo logic as GitHub) 8 new tests (4 per skill) covering queue, ownership rejection, foreign branch allow, forge error, combo ack, duplicate warning, and unknown repo. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Gogs PR URL support to the
/rebaseand/reviewrebase(/rr) skills on thetrogbot_live_codebranch.Why
/prand/reviewalready handle Gogs URLs./rebaseand/rrwere still GitHub-only — Gogs PRs would fall through to the "no valid PR URL" error.How
/rebase: new_handle_gogs()helper extracts Gogs PR URL viagogs_url_parser.search_pr_url, then callsGogsForge.pr_view()to getheadRefNamefor the branch-prefix ownership check (mirrors theis_own_prGitHub path). Falls through to GitHub if no Gogs URL detected./reviewrebase: new_try_extract_gogs_pr()helper extracts the Gogs PR URL and queues both/review+/rebasemissions with the Gogs URL. Same combo logic as GitHub, same duplicate/partial-queue messaging.Both paths use
try/except ValueErroraroundsearch_pr_urlso an unconfiguredKOAN_GOGS_HOSTsilently falls through to GitHub handling.Testing
🤖 Generated with Claude Code