From 3c6dee0f14fa0b2256902dace81583d44f382a49 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Mon, 26 Mar 2018 22:57:39 +0300 Subject: [PATCH] Add issues to issue links in PRs --- src/clj/commiteth/routes/webhooks.clj | 2 +- test/clj/commiteth/test/github.clj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clj/commiteth/routes/webhooks.clj b/src/clj/commiteth/routes/webhooks.clj index e8f2f03..3a7e44f 100644 --- a/src/clj/commiteth/routes/webhooks.clj +++ b/src/clj/commiteth/routes/webhooks.clj @@ -100,7 +100,7 @@ (let [cleaned-body (str/replace pr-body #"(?m)^\[comment.*$" "") keywords (concat (pr-keywords "#") (when-not (or (str/blank? owner) (str/blank? repo)) - (pr-keywords (str "https://github.com/" owner "/" repo "/")))) + (pr-keywords (str "https://github.com/" owner "/" repo "/issues/")))) extract (fn [source] (mapcat #(keep (fn [s] diff --git a/test/clj/commiteth/test/github.clj b/test/clj/commiteth/test/github.clj index 6161dde..edcad3b 100644 --- a/test/clj/commiteth/test/github.clj +++ b/test/clj/commiteth/test/github.clj @@ -18,6 +18,6 @@ (is (= #{1 2} res)))) (testing "Use issue URL instead of number" (let [res (set (extract-issue-number "status-im" "status-react" - "Fixes https://github.com/status-im/status-react/1" - "Fixes https://github.com/status-im/status-react/2"))] + "Fixes https://github.com/status-im/status-react/issues/1" + "Fixes https://github.com/status-im/status-react/issues/2"))] (is (= #{1 2} res)))))