awesome-wm-widgets/bitbucket-widget/test_bitbucket_api.sh
2020-02-01 14:04:31 -05:00

8 lines
No EOL
310 B
Bash
Executable file

#!/usr/bin/env bash
HOST='https://api.bitbucket.org'
ACCOUNT_ID=''
WORKSPACE=''
REPO_SLUG=''
curl -s -n "${HOST}/2.0/repositories/${WORKSPACE}/${REPO_SLUG}/pullrequests?fields=values.title,values.links.html,values.author.display_name,values.author.links.avatar&q=reviewers.account_id+%3D+%22${ACCOUNT_ID}%22"