workflows/bot: retry failed merges

By not keeping the node_id in the comments resulting from a failed
merge, these merges will be automatically retried.
This commit is contained in:
Wolfgang Walther
2025-11-01 15:54:53 +01:00
parent eea09eb9d3
commit 89ace76ff1
+2
View File
@@ -230,6 +230,8 @@ async function handleMerge({
try {
body.push(`:heavy_check_mark: ${await merge()} (#306934)`)
} catch (e) {
// Remove the HTML comment with node_id reference to allow retrying this merge on the next run.
body.shift()
body.push(`:x: Merge failed with: ${e} (#371492)`)
}
} else {