summaryrefslogtreecommitdiff
path: root/bitbucket-widget/test_bitbucket_api.sh
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-02-01 14:04:31 -0500
committerstreetturtle <streetturtle@gmail.com>2020-02-01 14:04:31 -0500
commitfa2774591f14856521687013d121e0abc5087cd3 (patch)
tree9635ae02bee49939bfad855b379834a197b2bf0c /bitbucket-widget/test_bitbucket_api.sh
parent8116b395445c1d766e6eca6a216f9c84e4c6511f (diff)
refactor bitbucket widget
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