Add function to close multiple issues with one keyword on commits (#2491)

This commit is contained in:
onukura
2020-07-27 07:45:40 +09:00
committed by GitHub
parent 6224ec2a7b
commit 81c0e2037f
2 changed files with 10 additions and 2 deletions

View File

@@ -64,6 +64,9 @@ class StringUtilSpec extends AnyFunSpec {
it("should returns Nil from message which does not contain close command") {
assert(StringUtil.extractCloseId("(refs #123)").toSeq == Nil)
}
it("should extract 'close #x, #y, #z' and return extracted multi id") {
assert(StringUtil.extractCloseId("(close #1, #2, #3, wip #4, close #5)").toSeq == Seq("1", "2", "3", "5"))
}
}
describe("getRepositoryViewerUrl") {