From 29871857553f9fdf4343a30b79fd97d342125e25 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Wed, 5 Feb 2020 12:05:12 -0500 Subject: show only open prs --- bitbucket-widget/bitbucket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbucket-widget') 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 = {} -- cgit v1.2.3