danger-jira 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jira/gem_version.rb +1 -1
- data/lib/jira/plugin.rb +1 -1
- data/spec/jira_spec.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab8dfc8879022b02fd417a231393ffbe2fc4d5c02b1e88b080f53cd53bd7e49
|
4
|
+
data.tar.gz: e66e212c9f37c927abfab83e7aa794b0303bbef57e5bb3d2d189a1601a950f75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d560db158299211aaa36c8a39f28f93a8b35f9d8e622a18ad00e2be1777e7efc6a5a4eb80dad97170b5b7d5cef8c23caebcaa82dd38ad178b20404323d14db39
|
7
|
+
data.tar.gz: 3a5a9dde154e2a76ddc507cddec17236968de7d79634de60d563307b53d71583fa8a12fc3164c36c88bd5c10a9bcbb1d9612570bc8e39b106bb4c95ce3efb15d
|
data/lib/jira/gem_version.rb
CHANGED
data/lib/jira/plugin.rb
CHANGED
@@ -126,7 +126,7 @@ module Danger
|
|
126
126
|
|
127
127
|
def should_skip_jira?(search_title: true)
|
128
128
|
# Consider first occurrence of 'no-jira' or nojira
|
129
|
-
regexp = Regexp.new("(no-jira|nojira)", true)
|
129
|
+
regexp = Regexp.new("(no-jira|nojira|NO-JIRA|NOJIRA)", true)
|
130
130
|
|
131
131
|
if search_title
|
132
132
|
vcs_host.pr_title.gsub(regexp) do |match|
|
data/spec/jira_spec.rb
CHANGED
@@ -104,6 +104,13 @@ module Danger
|
|
104
104
|
expect(result).to be(true)
|
105
105
|
end
|
106
106
|
|
107
|
+
it "can find NOJIRA in branch name" do
|
108
|
+
allow(@jira).to receive_message_chain("github.pr_body").and_return("")
|
109
|
+
allow(@jira).to receive_message_chain("github.branch_for_head").and_return("feat/NOJIRA/somefeature")
|
110
|
+
result = @jira.should_skip_jira?(search_title: false)
|
111
|
+
expect(result).to be(true)
|
112
|
+
end
|
113
|
+
|
107
114
|
it "can find nojira in pr body" do
|
108
115
|
allow(@jira).to receive_message_chain("github.pr_body").and_return("[nojira] Ticket doesn't need a jira but [WEB-123] WEB-123")
|
109
116
|
result = @jira.should_skip_jira?(search_title: false)
|