re-enable auto cherry-picking after website launch (#7897)

* re-enable auto cherry-picking after website launch

* change to regex since we renamed docs-cherrypick to type/docs-cherrypick
This commit is contained in:
Alvin Huang 2020-05-14 16:53:51 -04:00 committed by GitHub
parent a75e3d9051
commit 38da343790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -100,14 +100,13 @@ 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"
# TODO: enable this when replatform is merged into stable-website
# 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"
if [[ $label =~ docs-cherrypick ]]; then
status "backporting to stable-website"
branch="stable-website"
cherry_pick_with_slack_notification "$branch" "$CIRCLE_SHA1" "$pr_url"
# else if the label matches backport/*, it will attempt to cherry-pick to the release branch
if [[ $label =~ backport/* ]]; then
elif [[ $label =~ backport/* ]]; then
status "backporting to $label"
branch="${label/backport/release}.x"
cherry_pick_with_slack_notification "$branch" "$CIRCLE_SHA1" "$pr_url"