summaryrefslogtreecommitdiff
path: root/bitbucket-widget
diff options
context:
space:
mode:
authorPavel Makhov <pavel.makhov@behavox.com>2020-02-05 12:05:12 -0500
committerPavel Makhov <pavel.makhov@behavox.com>2020-02-05 12:05:12 -0500
commit29871857553f9fdf4343a30b79fd97d342125e25 (patch)
treede122dda072430f88d6ba626893be40b49353ad5 /bitbucket-widget
parentfacfd47bd1f2226efbda4eeeb91a0eb34d56f2b8 (diff)
show only open prs
Diffstat (limited to 'bitbucket-widget')
-rw-r--r--bitbucket-widget/bitbucket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbucket-widget/bitbucket.lua b/bitbucket-widget/bitbucket.lua
index 245d50a..44960a2 100644
--- a/bitbucket-widget/bitbucket.lua
+++ b/bitbucket-widget/bitbucket.lua
@@ -20,7 +20,7 @@ local gfs = require("gears.filesystem")
local HOME_DIR = os.getenv("HOME")
-local GET_PRS_CMD= [[bash -c "curl -s -n '%s/2.0/repositories/%s/%s/pullrequests?fields=values.title,values.links.html,values.author.display_name,values.author.account_id,values.author.links.avatar&q=reviewers.account_id+%%3D+%%22%s%%22'"]]
+local GET_PRS_CMD= [[bash -c "curl -s -n '%s/2.0/repositories/%s/%s/pullrequests?fields=values.title,values.links.html,values.author.display_name,values.author.account_id,values.author.links.avatar&q=reviewers.account_id+%%3D+%%22%s%%22+AND+state+%%3D+%%22OPEN%%22'"]]
local DOWNLOAD_AVATAR_CMD = [[bash -c "curl -n --create-dirs -o %s/.cache/awmw/bitbucket-widget/avatars/%s %s"]]
local bitbucket_widget = {}