From b1d4f9cbaf0b2e7d5fde71cfb69be4bb79937b97 Mon Sep 17 00:00:00 2001 From: xumia Date: Mon, 25 Sep 2023 07:50:09 +0000 Subject: [PATCH] Change the branchname variable, and change the body --- .azure-pipelines/azure-pipelines-UpgrateVersion.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-UpgrateVersion.yml b/.azure-pipelines/azure-pipelines-UpgrateVersion.yml index 72dc73b2d192..6800b0c8e057 100644 --- a/.azure-pipelines/azure-pipelines-UpgrateVersion.yml +++ b/.azure-pipelines/azure-pipelines-UpgrateVersion.yml @@ -161,8 +161,8 @@ stages: git branch -u remote/$BRANCH_NAME echo $GIT_PASSWORD | gh auth login --with-token - TITLE="[$BRANCH_NAME] Upgrade SONiC package Versions" - BODY="Upgrade SONiC Versions" + TITLE="[${SOURCE_BRANCH#refs/heads/}] Upgrade SONiC package Versions" + BODY=$TITLE RET=0 if ! gh pr create -t "$TITLE" -b "$BODY" -B $(Build.SourceBranch) -R $(Build.Repository.Name) > pr.log 2>&1; then if ! grep -q "already exists" pr.log; then