mirror of https://github.com/sobolevn/git-secret
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
240 B
Bash
11 lines
240 B
Bash
2 years ago
|
#!/usr/bin/bash
|
||
|
|
||
|
get_pr_json() {
|
||
|
curl -s -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/bats-core/bats-core/pulls/$1"
|
||
|
}
|
||
|
|
||
|
PR_NUMBER="$1"
|
||
|
LABEL="$2"
|
||
|
|
||
|
get_pr_json "$PR_NUMBER" | jq .labels[].name | grep "$LABEL"
|