Adapt script for different org

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-05-13 04:19:14 +02:00
parent c2acfb5c31
commit 27fd150491
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -26,8 +26,8 @@ gh_api() {
}
pr_branches() {
gh_api "$api_repo/pulls" | jq -r '.[].head.label | select(test("^ipfs:"))' \
| sed 's/^ipfs://'
gh_api "$api_repo/pulls" | jq -r '.[].head.label | select(test("^'"$org"':"))' \
| sed 's/^'"$org"'://'
}
origin_refs() {