mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-17 03:47:58 +00:00
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.*$" "")
|
(let [cleaned-body (str/replace pr-body #"(?m)^\[comment.*$" "")
|
||||||
keywords (concat (pr-keywords "#")
|
keywords (concat (pr-keywords "#")
|
||||||
(when-not (or (str/blank? owner) (str/blank? repo))
|
(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]
|
extract (fn [source]
|
||||||
(mapcat #(keep
|
(mapcat #(keep
|
||||||
(fn [s]
|
(fn [s]
|
||||||
|
@ -18,6 +18,6 @@
|
|||||||
(is (= #{1 2} res))))
|
(is (= #{1 2} res))))
|
||||||
(testing "Use issue URL instead of number"
|
(testing "Use issue URL instead of number"
|
||||||
(let [res (set (extract-issue-number "status-im" "status-react"
|
(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/issues/1"
|
||||||
"Fixes https://github.com/status-im/status-react/2"))]
|
"Fixes https://github.com/status-im/status-react/issues/2"))]
|
||||||
(is (= #{1 2} res)))))
|
(is (= #{1 2} res)))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user