| 19 | } |
| 20 | |
| 21 | async function commentOnPR(prNumber: number, reason: string) { |
| 22 | const body = `⚠️ **Blocking Beta Release** |
| 23 | |
| 24 | This PR cannot be merged into the beta branch due to: **${reason}** |
| 25 | |
| 26 | Please resolve this issue to include this PR in the next beta release.` |
| 27 | |
| 28 | try { |
| 29 | await $`gh pr comment ${prNumber} --body ${body}` |
| 30 | console.log(` Posted comment on PR #${prNumber}`) |
| 31 | } catch (err) { |
| 32 | console.log(` Failed to post comment on PR #${prNumber}: ${err}`) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | async function conflicts() { |
| 37 | const out = await $`git diff --name-only --diff-filter=U`.text().catch(() => "") |