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)