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-10-12 14:41:05 +02:00
parent eea09eb9d3
commit 89ace76ff1
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

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 {