Add issues to issue links in PRs

This commit is contained in:
Vitaliy Vlasov 2018-03-26 22:57:39 +03:00 committed by Tetiana Churikova
parent df93a502df
commit 3c6dee0f14
2 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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)))))