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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7287a448b908b4d6879ac9b84f23eca2d36d5d9dd054a0825f29ea710a7de426
4
- data.tar.gz: d15208bc1856e2aca33a38f507b1d49b1dca882d21a3f7d8571b57b93ab29b3d
3
+ metadata.gz: 0ab8dfc8879022b02fd417a231393ffbe2fc4d5c02b1e88b080f53cd53bd7e49
4
+ data.tar.gz: e66e212c9f37c927abfab83e7aa794b0303bbef57e5bb3d2d189a1601a950f75
5
5
  SHA512:
6
- metadata.gz: 86772d0e7840a1c448e5d94d2e5df3c8b5a73190a3d17b961686b4e054008d3c2094e4364c8fc7c474818f305e685e0b108baf28673080129bfec24a05ad9686
7
- data.tar.gz: ccb68490a542b183a1cfa62ea8dca9dd20dee815eeadfc6c7ff2711c13181c7ac9c460ea40a19b4e9e7fc80e9f185bd4c1b03ec65c9317da949a00ea2ceb3c57
6
+ metadata.gz: d560db158299211aaa36c8a39f28f93a8b35f9d8e622a18ad00e2be1777e7efc6a5a4eb80dad97170b5b7d5cef8c23caebcaa82dd38ad178b20404323d14db39
7
+ data.tar.gz: 3a5a9dde154e2a76ddc507cddec17236968de7d79634de60d563307b53d71583fa8a12fc3164c36c88bd5c10a9bcbb1d9612570bc8e39b106bb4c95ce3efb15d
@@ -1,3 +1,3 @@
1
1
  module Jira
2
- VERSION = "0.9.0".freeze
2
+ VERSION = "0.9.1".freeze
3
3
  end
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-jira
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RestlessThinker