mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-20 00:13:53 -05:00
fix curl, add reviewers, fix label call (#21522)
This commit is contained in:
parent
2f677665b3
commit
3feb157fc7
1 changed files with 4 additions and 4 deletions
|
|
@ -25,8 +25,7 @@ resp=$(curl -SL \
|
|||
"title":"[DO NOT MERGE]: $PLUGIN_REPO Automated plugin update check",
|
||||
"body":"Updates $PLUGIN_REPO to verify vault CI. Full log: https://github.com/hashicorp/vault/actions/runs/$RUN_ID",
|
||||
"head":"$VAULT_BRANCH",
|
||||
"base":"main",
|
||||
"reviewer": "$reviewers",
|
||||
"base":"main"
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
|
@ -41,10 +40,11 @@ vault_pr_url=$(echo "$resp" | jq '.html_url')
|
|||
echo "Vault PR number: $vault_pr_url"
|
||||
|
||||
# add labels to Vault PR
|
||||
gh pr edit $vault_pr_num ---add-label "dependencies,pr/no-changelong,pr/no-milestone" --repo hashicorp/vault
|
||||
gh pr edit "$vault_pr_num" --add-label "dependencies,pr/no-changelong,pr/no-milestone" --repo hashicorp/vault
|
||||
gh pr edit "$vault_pr_num" --add-reviewer "$reviewers"
|
||||
|
||||
# get Plugin PR number
|
||||
plugin_pr_num=$(gh pr list --head "$PLUGIN_BRANCH" --json number --repo hashicorp/$PLUGIN_REPO -q '.[0].number')
|
||||
|
||||
# make a comment on the plugin repo's PR
|
||||
gh pr comment $plugin_pr_num --body "Vault CI check PR: $vault_pr_url" --repo hashicorp/$PLUGIN_REPO
|
||||
gh pr comment "$plugin_pr_num" --body "Vault CI check PR: $vault_pr_url" --repo hashicorp/$PLUGIN_REPO
|
||||
|
|
|
|||
Loading…
Reference in a new issue