dependabot-common 0.144.0 → 0.145.0
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/github.rb +3 -3
- data/lib/dependabot/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: 7b86579e2112d65ed03954f5590dc1dec848a75d78466533af0071a127990d86
|
4
|
+
data.tar.gz: 19166a908570f73192e56aaf4cafc6217f324170639798a1ee2b90866db6834c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31ec99470bd79837c1779aca0c7a15d386b9bcf205de6ca7657412362fd9036b472a2ff918c4209ef17ae23795e5dc987600d39a1092227b5ce4caed08ac7556
|
7
|
+
data.tar.gz: 0c8a847875ec3a67dd84dd4113a4044888ed6e529298e503ef6941784cae1f498dd88bfe3a159b36f5d9a8d4a1d567f94a731ae40e1c0b397cd853ace39683cb
|
@@ -226,12 +226,12 @@ module Dependabot
|
|
226
226
|
end
|
227
227
|
|
228
228
|
def create_branch(commit)
|
229
|
-
ref = "heads/#{branch_name}"
|
229
|
+
ref = "refs/heads/#{branch_name}"
|
230
230
|
|
231
231
|
begin
|
232
232
|
branch =
|
233
233
|
github_client_for_source.create_ref(source.repo, ref, commit.sha)
|
234
|
-
@branch_name = ref.gsub(%r{^heads/}, "")
|
234
|
+
@branch_name = ref.gsub(%r{^refs/heads/}, "")
|
235
235
|
branch
|
236
236
|
rescue Octokit::UnprocessableEntity => e
|
237
237
|
# Return quietly in the case of a race
|
@@ -244,7 +244,7 @@ module Dependabot
|
|
244
244
|
|
245
245
|
# Branch creation will fail if a branch called `dependabot` already
|
246
246
|
# exists, since git won't be able to create a dir with the same name
|
247
|
-
ref = "heads/#{SecureRandom.hex[0..3] + branch_name}"
|
247
|
+
ref = "refs/heads/#{SecureRandom.hex[0..3] + branch_name}"
|
248
248
|
retry
|
249
249
|
end
|
250
250
|
end
|
data/lib/dependabot/version.rb
CHANGED