cherry pick 'docs-cherrypick' label rather than 'docs' to stable-website (#7443)

This commit is contained in:
Alvin Huang 2020-03-12 13:22:51 -04:00 committed by GitHub
parent 8a7ff69b19
commit 3e0ecc096c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -95,8 +95,8 @@ for label in $labels; do
git config --local user.email "hashicorp-ci@users.noreply.github.com"
git config --local user.name "hashicorp-ci"
status "checking label: $label"
# if the label matches docs*, it will attempt to cherry-pick to stable-website
if [[ $label =~ docs* ]]; then
# if the label matches docs-cherrypick, it will attempt to cherry-pick to stable-website
if [[ $label == docs-cherrypick ]]; then
status "backporting to stable-website"
branch="stable-website"
cherry_pick_with_slack_notification $branch $CIRCLE_SHA1 $pr_url