This commit is contained in:
Oskar Thorén 2017-10-31 12:23:57 -05:00
parent ff995f1a9d
commit 46ba59e7d0
1 changed files with 5 additions and 5 deletions

View File

@ -19,13 +19,13 @@
;; TODO: Change max-limit, also defined in two places
(defn maybe-add-bounty-for-issue [repo repo-id issue]
(let [res (issues/get-issues-count repo-id)
{issues-count :count} res
(let [res (issues/get-issues-count repo-id)
{count :count} res
max-limit 2
limit-reacted? (> issues-count max-limit)
_ log/debug ("*** get-issues-count" repo-id res count limit-reached?)]
limit-reached? (> count max-limit)
_ (log/debug "*** get-issues-count" repo-id res count limit-reached?)]
(if limit-reached?
(log/debug "Total issues for repo limit reached " repo issues-count)
(log/debug "Total issues for repo limit reached " repo count)
(add-bounty-for-issue repo repo-id issue))))
(defn add-bounty-for-issue [repo repo-id issue]