dependabot-common 0.105.8 → 0.106.0

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: '079dac5b23628f127b1c927e9834e8f6e0cd1e8e4ab715ece369bae17017a0d8'
4
- data.tar.gz: 004de4f9f135cb1172ada9fa5128376bce2ef49d902cf24d3edcfbd9d5eeb4fd
3
+ metadata.gz: d54136bfb19db965677b1262ba6326101bf5393a3cbd9db2ec4415d67510e570
4
+ data.tar.gz: 4baa9d954218bed9dc3ac4072d977202edfd86b8de27e129e8f8ea017d857b92
5
5
  SHA512:
6
- metadata.gz: f3d961fbc48ea973dd733f49103de0b57712020c1713d2d8f9625183cff71f74be1d8b259d3849d41573b2069039a7b45e5aee636ff3f4b419215c76c7fdefa0
7
- data.tar.gz: e68d65e36d66ac1f569ee128c13d9c0682d2666aa29bf0abfaeb6843c767c0fdbe05b53741d429eb67a7da646ab535da66bf3f5a008c7bf3c37ff6a21a6502c0
6
+ metadata.gz: 6009faa27cfc42b2e4d7f2591e6deb5cc671fea86e0d0c5e534b47b550139e1ff4805b9e5e1bb0b69960d1da6771db70718f261f13701fbd9a1ca78a63d7f69b
7
+ data.tar.gz: ce458ad65f9b0564e231fe6186bcd32c62882e2a094e4e00a7164c076be83ec17b1a5f6a755381129ea5c31f85284ed8cb12ae58cf065bab478b7f0f031eb5e0
@@ -4,14 +4,15 @@ require "dependabot/pull_request_updater/github"
4
4
 
5
5
  module Dependabot
6
6
  class PullRequestUpdater
7
- attr_reader :source, :files, :base_commit, :credentials,
7
+ attr_reader :source, :files, :base_commit, :old_commit, :credentials,
8
8
  :pull_request_number, :author_details, :signature_key
9
9
 
10
- def initialize(source:, base_commit:, files:, credentials:,
11
- pull_request_number:, author_details: nil,
12
- signature_key: nil)
10
+ def initialize(source:, base_commit:, old_commit:, files:,
11
+ credentials:, pull_request_number:,
12
+ author_details: nil, signature_key: nil)
13
13
  @source = source
14
14
  @base_commit = base_commit
15
+ @old_commit = old_commit
15
16
  @files = files
16
17
  @credentials = credentials
17
18
  @pull_request_number = pull_request_number
@@ -32,6 +33,7 @@ module Dependabot
32
33
  Github.new(
33
34
  source: source,
34
35
  base_commit: base_commit,
36
+ old_commit: old_commit,
35
37
  files: files,
36
38
  credentials: credentials,
37
39
  pull_request_number: pull_request_number,
@@ -8,14 +8,15 @@ require "dependabot/pull_request_updater"
8
8
  module Dependabot
9
9
  class PullRequestUpdater
10
10
  class Github
11
- attr_reader :source, :files, :base_commit, :credentials,
11
+ attr_reader :source, :files, :base_commit, :old_commit, :credentials,
12
12
  :pull_request_number, :author_details, :signature_key
13
13
 
14
- def initialize(source:, base_commit:, files:, credentials:,
15
- pull_request_number:, author_details: nil,
16
- signature_key: nil)
14
+ def initialize(source:, base_commit:, old_commit:, files:,
15
+ credentials:, pull_request_number:,
16
+ author_details: nil, signature_key: nil)
17
17
  @source = source
18
18
  @base_commit = base_commit
19
+ @old_commit = old_commit
19
20
  @files = files
20
21
  @credentials = credentials
21
22
  @pull_request_number = pull_request_number
@@ -161,6 +162,7 @@ module Dependabot
161
162
  pull_request_commits(source.repo, pull_request_number)
162
163
 
163
164
  commit =
165
+ commits.find { |c| c.sha == old_commit } ||
164
166
  commits.find { |c| c.commit.author.name == author_name } ||
165
167
  commits.first
166
168
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.105.8"
4
+ VERSION = "0.106.0"
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.105.8
4
+ version: 0.106.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-19 00:00:00.000000000 Z
11
+ date: 2019-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr