Skip to content

Commit 04f0a06

Browse files
committed
Add automatic delete PR branch
1 parent 6a6412e commit 04f0a06

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.ci/update_registry.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@ try
4848
run(`git add $registry_path`)
4949
run(`git commit -m "update registry for $target_name v$version"`)
5050
run(`git push -u origin chore/update-registry`)
51-
# Capture the PR number from the create output
52-
pr_output = read(`gh pr create --title "Update registry for $target_name v$version" --json number -q .number`, String)
53-
pr_number = strip(pr_output)
54-
55-
# Enable auto-merge with the PR number
56-
run(`gh pr merge $pr_number --auto --merge`)
51+
run(`gh pr create --title "Update registry for $target_name v$version"`)
52+
run(`gh pr merge --auto --merge --delete-branch`)
5753
println("✅ Registry pushed.")
5854
catch e
5955
println("⚠️ Could not push registry: $e")

0 commit comments

Comments
 (0)