summaryrefslogtreecommitdiff
path: root/bitbucket-widget/test_bitbucket_api.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bitbucket-widget/test_bitbucket_api.sh')
-rwxr-xr-xbitbucket-widget/test_bitbucket_api.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbucket-widget/test_bitbucket_api.sh b/bitbucket-widget/test_bitbucket_api.sh
new file mode 100755
index 0000000..378b3ef
--- /dev/null
+++ b/bitbucket-widget/test_bitbucket_api.sh
@@ -0,0 +1,8 @@
+#!/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" \ No newline at end of file