Skip to content

A platform for community discussion. Free, open, simple.

DEV: update release rake task to mark PRs ready-for-review (#38464)

David Taylorac9f132fe526
diff --git a/lib/tasks/release.rake b/lib/tasks/release.rake
index 58495a8c08c..f4d457620f2 100644
--- a/lib/tasks/release.rake
+++ b/lib/tasks/release.rake
@@ -128,6 +128,9 @@ module ReleaseUtils
git "push", "origin", "#{branch}:#{base}"
break
else
+ if !gh("pr", "ready", branch) # remove draft status
+ puts "Failed to mark PR as ready-for-review... trying to merge anyway"
+ end
success = gh("pr", "merge", branch, "--rebase", "--delete-branch")
break if success
puts "Merge failed. Maybe the PR isn't approved yet, or there's a conflict."