mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 04:29:42 +00:00
chore: group beta PR logs (#24236)
This commit is contained in:
parent
ec201623fb
commit
cdc7d5f2ea
1 changed files with 15 additions and 2 deletions
|
|
@ -57,6 +57,19 @@ function lines(prs: PR[]) {
|
|||
return prs.map((x) => `- #${x.number}: ${x.title}`).join("\n") || "(none)"
|
||||
}
|
||||
|
||||
function group(title: string) {
|
||||
if (process.env.GITHUB_ACTIONS !== "true") {
|
||||
console.log(title)
|
||||
return { [Symbol.dispose]() {} }
|
||||
}
|
||||
console.log(`::group::${title}`)
|
||||
return {
|
||||
[Symbol.dispose]() {
|
||||
console.log("::endgroup::")
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
async function typecheck() {
|
||||
console.log(" Running typecheck...")
|
||||
|
||||
|
|
@ -227,8 +240,8 @@ async function main() {
|
|||
const failed: FailedPR[] = []
|
||||
|
||||
for (const [idx, pr] of prs.entries()) {
|
||||
console.log(`\nProcessing PR ${idx + 1}/${prs.length} #${pr.number}: ${pr.title}`)
|
||||
|
||||
console.log()
|
||||
using _ = group(`Processing PR ${idx + 1}/${prs.length} #${pr.number}: ${pr.title}`)
|
||||
console.log(" Fetching PR head...")
|
||||
try {
|
||||
await $`git fetch origin pull/${pr.number}/head:pr/${pr.number}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue