···110110 owner: context.repo.owner,
111111 repo: context.repo.repo,
112112 issue_number: existingSyncPR.number,
113113- body: `🔄 New upstream changes found!\n\n**New upstream SHA:** ${upstreamSha}\n**Additional commits:** ${commitCount}\n\nA new sync branch (\`${branchName}\`) has been created. You may want to close this PR and review the new one, or update this PR with the latest changes.`,
113113+ body: `🔄 New upstream changes found!\\n\nA new sync branch (\`${branchName}\`) has been created. You may want to close this PR and review the new one, or update this PR with the latest changes.`,
114114 });
115115 } else {
116116 // Create new PR
···118118 const { data: pr } = await github.rest.pulls.create({
119119 owner: context.repo.owner,
120120 repo: context.repo.repo,
121121- title: `Sync with upstream - ${commitCount} new commit${commitCount > 1 ? "s" : ""}`,
121121+ title: `Sync with upstream`,
122122 head: branchName,
123123 base: "main",
124124 body: `## 🔄 Upstream Sync
125125126126- This PR syncs the latest changes from upstream.
126126+ This PR syncs the latest changes from upstream.
127127128128- **📊 Summary:**
129129- - **Commits to sync:** ${commitCount}
130130- - **Upstream SHA:** ${upstreamSha}
131131- - **Generated:** ${new Date().toISOString()}
128128+ **📊 Summary:**
129129+ - **Commits to sync:** ${commitCount}
130130+ - **Upstream SHA:** ${upstreamSha}
131131+ - **Generated:** ${new Date().toISOString()}
132132133133- **⚠️ Next Steps:**
134134- 1. Review the changes in this PR
135135- 2. Resolve any merge conflicts if present
136136- 3. Test the changes if needed
137137- 4. Merge when ready
133133+ **⚠️ Next Steps:**
134134+ 1. Review the changes in this PR
135135+ 2. Resolve any merge conflicts if present
136136+ 3. Test the changes if needed
137137+ 4. Merge when ready
138138139139- **🔧 If there are conflicts:**
140140- \`\`\`bash
141141- git checkout ${branchName}
142142- git merge main
143143- # Resolve conflicts
144144- git add .
145145- git commit
146146- git push origin ${branchName}
147147- \`\`\`
139139+ **🔧 If there are conflicts:**
140140+ \`\`\`bash
141141+ git checkout ${branchName}
142142+ git merge main
143143+ # Resolve conflicts
144144+ git add .
145145+ git commit
146146+ git push origin ${branchName}
147147+ \`\`\`
148148149149- ---
150150- *This PR was automatically generated by the upstream sync workflow.*`,
149149+ ---
150150+ *This PR was automatically generated by the upstream sync workflow.*`,
151151 draft: false,
152152 });
153153···166166 (err.message.includes("No commits between") ||
167167 err.message.includes("head and base are identical"))
168168 ) {
169169- console.log(err.message);
169169+ console.log("No conflict found.", err.message);
170170 }
171171 }
172172 }