From 2acaece6ae7dabf8cd97994bf795dcc8e50d110b Mon Sep 17 00:00:00 2001 From: Vlad Mocanu Date: Thu, 26 Feb 2026 11:21:29 +0200 Subject: [PATCH] fix: use expand=1 instead of quick_pull=1 in PR URL on Forgejo The prompt template hardcoded quick_pull=1 (GitHub-specific) in the "Create a PR" URL. On Forgejo, this parameter is ignored so the compare page doesn't auto-expand the PR creation form. Forgejo uses expand=1 for this purpose. Since Claude writes the PR URL into the comment body, and updateForgejoCommentBody() extracts it (prLinkFromContent) with priority over the URL generated by update-comment-link.ts, the prompt template is the correct place to fix this. Co-Authored-By: Claude Opus 4.6 --- src/create-prompt/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/create-prompt/index.ts b/src/create-prompt/index.ts index e25683f..46c6d05 100644 --- a/src/create-prompt/index.ts +++ b/src/create-prompt/index.ts @@ -601,7 +601,7 @@ ${ eventData.claudeBranch ? ` When done with changes, provide a PR link: -[Create a PR](${GITHUB_SERVER_URL}/${context.repository}/compare/${eventData.baseBranch}...${eventData.claudeBranch}?quick_pull=1&title=&body=) +[Create a PR](${GITHUB_SERVER_URL}/${context.repository}/compare/${eventData.baseBranch}...${eventData.claudeBranch}?${detectPlatform() === "forgejo" ? "expand=1" : "quick_pull=1"}&title=&body=) Use THREE dots (...) between branches. URL-encode all parameters.` : "" } @@ -791,7 +791,7 @@ ${eventData.eventName === "issue_comment" || eventData.eventName === "pull_reque ${ eventData.claudeBranch ? `- Provide a URL to create a PR manually in this format: - [Create a PR](${GITHUB_SERVER_URL}/${context.repository}/compare/${eventData.baseBranch}...?quick_pull=1&title=&body=) + [Create a PR](${GITHUB_SERVER_URL}/${context.repository}/compare/${eventData.baseBranch}...?${detectPlatform() === "forgejo" ? "expand=1" : "quick_pull=1"}&title=&body=) - IMPORTANT: Use THREE dots (...) between branch names, not two (..) Example: ${GITHUB_SERVER_URL}/${context.repository}/compare/main...feature-branch (correct) NOT: ${GITHUB_SERVER_URL}/${context.repository}/compare/main..feature-branch (incorrect)