From 60b4e77764b5b76c4c584c3949f0aec5c6421b07 Mon Sep 17 00:00:00 2001 From: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Date: Wed, 8 Sep 2021 09:53:06 +0800 Subject: [PATCH] Update auto-release (#20582) * version auto-calculation rule * single api version rule * Update main.py * additional rule for track1 * when changelog is null * Update PythonSdkLiveTest.yml for Azure Pipelines Add `ISSUE_LINK` * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update livetest_package.txt * Create create_pr.py * Update PythonSdkLiveTest.yml for Azure Pipelines use python script tu create pr * Update PythonSdkLiveTest.yml for Azure Pipelines * create py * Update PythonSdkLiveTest.yml for Azure Pipelines * Update token * Update token * test create_pr * Update PythonSdkLiveTest.yml for Azure Pipelines * Update create_pr.py * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * add_comment * update by jf * Update PythonSdkLiveTest.yml * Update create_auto_release_pr * Update create_auto_release_pr.py * Update create_auto_release_pr.py * Update yaml and py * Update create_auto_release_pr.py * Update create_auto_release_pr.py * Update create_auto_release_pr.py * Update PythonSdkLiveTest.yml * Update create_auto_release_pr.py * Update PythonSdkLiveTest.yml * Update PythonSdkLiveTest.yml for Azure Pipelines * Update create_auto_release_pr.py Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- scripts/auto_release/PythonSdkLiveTest.yml | 1 + scripts/auto_release/create_auto_release_pr.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/auto_release/PythonSdkLiveTest.yml b/scripts/auto_release/PythonSdkLiveTest.yml index 0930961468d3..433ecaa81a4d 100644 --- a/scripts/auto_release/PythonSdkLiveTest.yml +++ b/scripts/auto_release/PythonSdkLiveTest.yml @@ -75,6 +75,7 @@ jobs: export NEW_BRANCH=`sed -n '1p' $output_path/output.txt` export TARGET_BRANCH=`sed -n '2p' $output_path/output.txt` export ISSUE_LINK=$(ISSUE_LINK) + export PIPELINE_LINK=$(PIPELINE_LINK) export USR_NAME=$(USR_NAME) export USR_TOKEN=$(USR_TOKEN) export TEST_RESULT=$test_result diff --git a/scripts/auto_release/create_auto_release_pr.py b/scripts/auto_release/create_auto_release_pr.py index 99391623fe25..9dafa7213691 100644 --- a/scripts/auto_release/create_auto_release_pr.py +++ b/scripts/auto_release/create_auto_release_pr.py @@ -8,7 +8,7 @@ def main(): pr_title = "[AutoRelease] {}(Do not merge)".format(os.getenv('NEW_BRANCH')) pr_head = "{}:{}".format(os.getenv('USR_NAME'), os.getenv('NEW_BRANCH')) pr_base = os.getenv('TARGET_BRANCH') - pr_body = "{} \n{}".format(os.getenv('ISSUE_LINK'), os.getenv('TEST_RESULT')) + pr_body = "{} \n{} \n{}".format(os.getenv('ISSUE_LINK'), os.getenv('TEST_RESULT'), os.getenv('PIPELINE_LINK')) res_create = api.pulls.create(pr_title, pr_head, pr_base, pr_body) pr_number = res_create.number