You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check out the specified branch if $BRANCH is set
11
+
if [[ -n"${BRANCH:-}" ]];then
12
+
echo"Checking out branch $BRANCH"
13
+
git checkout "$BRANCH"
14
+
fi
15
+
6
16
# If $PLUGIN_PATH is defined, echo it.
7
17
if [[ -n"${PLUGIN_PATH:-}" ]];then
8
18
PLUGIN_PATH=${WORKFLOW_PATH}/${PLUGIN_PATH}
@@ -108,7 +118,11 @@ main() {
108
118
git commit -m "Update Tested Up To version to $CURRENT_WP_VERSION"
109
119
git push origin "$BRANCH_NAME"
110
120
111
-
gh pr create --title "Update Tested Up To version to $CURRENT_WP_VERSION" --body "This pull request updates the \"Tested up to\" version in specified files (${FILENAMES}) to match the current WordPress version $CURRENT_WP_VERSION." --base "$BRANCH"
121
+
# Determine the base branch for the PR
122
+
BASE_BRANCH="${BRANCH:-$DEFAULT_BRANCH}"
123
+
124
+
echo"Creating a pull request with base branch $BASE_BRANCH."
125
+
gh pr create --title "Update Tested Up To version to $CURRENT_WP_VERSION" --body "This pull request updates the \"Tested up to\" version in specified files (${FILENAMES}) to match the current WordPress version $CURRENT_WP_VERSION." --base "$BASE_BRANCH"
0 commit comments