dependabot-common 0.110.0 → 0.110.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/pull_request_creator/pr_name_prefixer.rb +15 -5
- data/lib/dependabot/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8adb153efd9a93aaa5117b8808272887ea43f2c5f653e74aabdf206abfa0ded
|
4
|
+
data.tar.gz: ee489670905bcde698b767ab17adbda01f009f385de03272bd6c0cb31642d3f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a34352e3cd92d2c4f4d5f920f866afea0e4c40045eebc42c6902f924c387d481b9bcf8037f0c21a67f9008a1bd33e7aa85c452fac2d9b0e8a012f080f64dfe3
|
7
|
+
data.tar.gz: fa09edae535a5e6e31c0cbbae2da7e1c54ec42cb1db882f8ed1f14afabd33cd062b34cd9cb47b2975f7ec5a9cf4a925c5c62f4c63724571c5acf952828fb0127
|
@@ -80,11 +80,7 @@ module Dependabot
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def prefix_from_explicitly_provided_details
|
83
|
-
|
84
|
-
raise "No explicitly provided prefix!"
|
85
|
-
end
|
86
|
-
|
87
|
-
prefix = commit_message_options[:prefix].to_s
|
83
|
+
prefix = explicitly_provided_prefix_string
|
88
84
|
return if prefix.empty?
|
89
85
|
|
90
86
|
prefix += "(#{scope})" if commit_message_options[:include_scope]
|
@@ -93,6 +89,20 @@ module Dependabot
|
|
93
89
|
prefix
|
94
90
|
end
|
95
91
|
|
92
|
+
def explicitly_provided_prefix_string
|
93
|
+
unless commit_message_options.key?(:prefix)
|
94
|
+
raise "No explicitly provided prefix!"
|
95
|
+
end
|
96
|
+
|
97
|
+
if dependencies.any?(&:production?)
|
98
|
+
commit_message_options[:prefix].to_s
|
99
|
+
elsif commit_message_options.key?(:prefix_development)
|
100
|
+
commit_message_options[:prefix_development].to_s
|
101
|
+
else
|
102
|
+
commit_message_options[:prefix].to_s
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
96
106
|
def prefix_for_last_dependabot_commit_style
|
97
107
|
case last_dependabot_commit_style
|
98
108
|
when :gitmoji then "⬆️ "
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.110.
|
4
|
+
version: 0.110.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ecr
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.7'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
60
|
+
version: '1.7'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: excon
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|