dependabot-core 0.86.19 → 0.86.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dependabot/pull_request_creator/gitlab.rb +16 -2
- data/lib/dependabot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 016bb8198276c8f6e2c38add7d6354b0ad56bcf9d19ec6831176a85bbc5c860c
|
4
|
+
data.tar.gz: bfae98443d8067bc797446b47a668e03b51632893111aaa21b56ff8eb67d28e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9b75b2e238e76122e00262df80d3b9132dc39a612592970fd7ded948cdb81c5819c25d94cda0a44993e2dc5a70c1e02e8cbc6fad86a9574dce82c4f9bbdfc04
|
7
|
+
data.tar.gz: 173359802fa99c744b9730ca68c3dcaaa45aa8b180dfc8a6fae0aa831a2a170a859f622628480ebcc43b5c5c90b57875c3f0f8a0b6da47bf347c829b68f42175
|
data/CHANGELOG.md
CHANGED
@@ -82,8 +82,10 @@ module Dependabot
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def create_commit
|
85
|
-
|
86
|
-
|
85
|
+
if files.count == 1 && files.first.type == "submodule"
|
86
|
+
return create_submodule_update_commit
|
87
|
+
end
|
88
|
+
|
87
89
|
actions = files.map do |file|
|
88
90
|
{
|
89
91
|
action: "update",
|
@@ -100,6 +102,18 @@ module Dependabot
|
|
100
102
|
)
|
101
103
|
end
|
102
104
|
|
105
|
+
def create_submodule_update_commit
|
106
|
+
file = files.first
|
107
|
+
|
108
|
+
gitlab_client_for_source.edit_submodule(
|
109
|
+
source.repo,
|
110
|
+
file.path.gsub(%r{^/}, ""),
|
111
|
+
branch: branch_name,
|
112
|
+
commit_sha: file.content,
|
113
|
+
commit_message: commit_message
|
114
|
+
)
|
115
|
+
end
|
116
|
+
|
103
117
|
def create_merge_request
|
104
118
|
gitlab_client_for_source.create_merge_request(
|
105
119
|
source.repo,
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.86.
|
4
|
+
version: 0.86.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '4.
|
81
|
+
version: '4.8'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '4.
|
88
|
+
version: '4.8'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: gpgme
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|