threat 1.0.2 → 1.0.3
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/threat/plugins/pr_title.rb +2 -2
- data/lib/threat/version.rb +1 -1
- 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: acf5d5350c0b8e527c2347910603a1079129f1451f9f8e540aff7dd8e291980a
|
|
4
|
+
data.tar.gz: dba33d9ebcd83085bc21d4d1909d359283bf282f040c9a8a839e7fb780b3afd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbf4f9909099e32bf249c1d028856f530befa866cfb700afbb083c0d8f340686092207f03cc71aae0a40a3fe0b5c2bce64afa8c3ec159ff2ccdde66e7d757eac
|
|
7
|
+
data.tar.gz: 9da87b474d3c6fd24d0c066a847adc175c63ea70a52ee4ae5a0599c184e4cbb94703eb700401d7aaae472397d3ce14c464daffb2412d9778f3aea3702f42411d
|
|
@@ -17,8 +17,8 @@ class Threat::Plugins::PrTitle < Danger::Plugin
|
|
|
17
17
|
PR_TITLE_REGEX = /\[#{JIRA_TICKET_NUMBER_FORMAT}\] [A-Z|0-9].*\S/ # [KEY-123] An amazing feature
|
|
18
18
|
|
|
19
19
|
def run!
|
|
20
|
-
#
|
|
21
|
-
return unless
|
|
20
|
+
# This check is available for pull requests only
|
|
21
|
+
return unless env.pr?
|
|
22
22
|
|
|
23
23
|
failure('Invalid format of PR title') unless github.pr_title.strip.match?(PR_TITLE_REGEX)
|
|
24
24
|
end
|
data/lib/threat/version.rb
CHANGED