dependabot-common 0.111.46 → 0.111.47
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/dependabot/pull_request_creator/github.rb +27 -20
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7794417aa757c3b3889e8e37458c43b1c537f920b8cc6bfcb729dbf39fd5ced
|
|
4
|
+
data.tar.gz: 2ca4fe1ddd33e9df4ef63e2f397e0d25e60bbd6df90c1e2473912c4327527e27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fcd973e9cc892bdbb6a59a65a6b177f6dbfa312ff447b12f35c27e06b59ffdc2894c73be91896aa297e87829ae156d99f6adf252e0ebc74d008ac48de2f8f44
|
|
7
|
+
data.tar.gz: 13b64f851e3f333cdd54f62bd52d88f5dbdf472eaea7263db276d1cb31f1465fd8f444f1d35e23eeeb2bdbb95f96e2e3a82d8f9a3dddf1b0feef8fea5d9b402e
|
|
@@ -77,28 +77,35 @@ module Dependabot
|
|
|
77
77
|
retry
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
# Existing pull requests with this branch name that are open or closed.
|
|
81
|
+
# Note: we ignore *merged* pull requests for the branch name as we want
|
|
82
|
+
# to recreate them if the dependency version has regressed.
|
|
80
83
|
def pull_request_exists?
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
84
|
+
pull_requests =
|
|
85
|
+
begin
|
|
86
|
+
github_client_for_source.pull_requests(
|
|
87
|
+
source.repo,
|
|
88
|
+
head: "#{source.repo.split('/').first}:#{branch_name}",
|
|
89
|
+
state: "all"
|
|
90
|
+
)
|
|
91
|
+
rescue Octokit::InternalServerError
|
|
92
|
+
# A GitHub bug sometimes means adding `state: all` causes problems.
|
|
93
|
+
# In that case, fall back to making two separate requests.
|
|
94
|
+
open_prs = github_client_for_source.pull_requests(
|
|
95
|
+
source.repo,
|
|
96
|
+
head: "#{source.repo.split('/').first}:#{branch_name}",
|
|
97
|
+
state: "open"
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
closed_prs = github_client_for_source.pull_requests(
|
|
101
|
+
source.repo,
|
|
102
|
+
head: "#{source.repo.split('/').first}:#{branch_name}",
|
|
103
|
+
state: "closed"
|
|
104
|
+
)
|
|
105
|
+
[*open_prs, *closed_prs]
|
|
106
|
+
end
|
|
100
107
|
|
|
101
|
-
|
|
108
|
+
pull_requests.reject(&:merged).any?
|
|
102
109
|
end
|
|
103
110
|
|
|
104
111
|
def repo_exists?
|
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.111.
|
|
4
|
+
version: 0.111.47
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-08-
|
|
11
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-ecr
|