dependabot-common 0.111.46 → 0.111.47

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c9e3a603be24e3d105be3626c34a49f8c5ae84cf948bebec645c1f8eb195c87
4
- data.tar.gz: ba7861847d4c45d7eed064fba9e41a1355a4a9b78259901804e56c7bd68a50a9
3
+ metadata.gz: a7794417aa757c3b3889e8e37458c43b1c537f920b8cc6bfcb729dbf39fd5ced
4
+ data.tar.gz: 2ca4fe1ddd33e9df4ef63e2f397e0d25e60bbd6df90c1e2473912c4327527e27
5
5
  SHA512:
6
- metadata.gz: cd375d7c2e37d91a6ebe61e0aab30dc556812c8ab7df85d1525d83ad0a4f86a3b1e1e4cf9b42f9ca27feca03298e5f0b0044cd00eb82f4ec47b3d6a775bfe7ee
7
- data.tar.gz: fcb281871a2eb6511b3a6664efd1173c605b9c6449f3313e9ae680e91d3740cca8138e6d533cc39d02d8a214f3d7211fc17788b5d0ce54f2439b145ad59f6b1a
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
- github_client_for_source.pull_requests(
82
- source.repo,
83
- head: "#{source.repo.split('/').first}:#{branch_name}",
84
- state: "all"
85
- ).any?
86
- rescue Octokit::InternalServerError
87
- # A GitHub bug sometimes means adding `state: all` causes problems.
88
- # In that case, fall back to making two separate requests.
89
- open_prs = github_client_for_source.pull_requests(
90
- source.repo,
91
- head: "#{source.repo.split('/').first}:#{branch_name}",
92
- state: "open"
93
- )
94
-
95
- closed_prs = github_client_for_source.pull_requests(
96
- source.repo,
97
- head: "#{source.repo.split('/').first}:#{branch_name}",
98
- state: "closed"
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
- [*open_prs, *closed_prs].any?
108
+ pull_requests.reject(&:merged).any?
102
109
  end
103
110
 
104
111
  def repo_exists?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.111.46"
4
+ VERSION = "0.111.47"
5
5
  end
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.46
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-04 00:00:00.000000000 Z
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