Skip to content

Commit

Permalink
Backport to branch(3.7) : Should not create PR for base branch in Aut…
Browse files Browse the repository at this point in the history
…o-PR (#1258)

Co-authored-by: Toshihiro Suzuki <[email protected]>
  • Loading branch information
feeblefakie and brfrn169 authored Nov 2, 2023
1 parent 9d954d5 commit 55cef87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/auto-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
echo -------------
branches=$(ci/auto-pr/conv_proj_version_to_branch $versions)
# Remove the base branch from the list because the target change is already merged to the branch.
branches=$(echo "$branches" | sed "/^${{ github.base_ref }}$/d")
echo -------------
echo "branches: $branches"
echo -------------
Expand Down
3 changes: 1 addition & 2 deletions ci/auto-pr/conv_proj_version_to_branch
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ versions.inject(Set.new) {|acc, v|
# e.g. project: "ScalarDB 4.0.0" -> branch: "master"
#
# This GitHub project corresponds to `main`/`master` branch.
# The target change is already merged to the default branch.
# Nonthing to do.
acc << "master"
else
# e.g. project: "ScalarDB 3.8.0" -> branch: "3"
#
Expand Down

0 comments on commit 55cef87

Please sign in to comment.