Add issues to issue links in PRs
This commit is contained in:
parent
df93a502df
commit
3c6dee0f14
|
@ -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]
|
||||
|
|
|
@ -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)))))
|
||||
|
|
Loading…
Reference in New Issue