From fa2774591f14856521687013d121e0abc5087cd3 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sat, 1 Feb 2020 14:04:31 -0500 Subject: refactor bitbucket widget --- bitbucket-widget/test_bitbucket_api.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bitbucket-widget/test_bitbucket_api.sh (limited to 'bitbucket-widget/test_bitbucket_api.sh') 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 -- cgit v1.2.3