dependabot-common 0.113.21 → 0.113.22
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ff88870f7b20dbc82881890a2b12e4f18cb8bd4152d7366549760a14c977d7
|
4
|
+
data.tar.gz: 5b6e1b277b85fea4eb6baaf07286e5037f1dc4a124ceee8eacc5111c7da4a627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45a26263e628a70a1ef36d99189c6e22e479481132f19f093cadb3770771128466f57d9473d5f1680584ec5bfb50c5f230e02cd4fdf500638e398a4a1df494fe
|
7
|
+
data.tar.gz: 6ed74ee6dd85b5db1d2135aeb19205a2bb8dca902dd0a9797303252c34013c6de88caf3443bb27d68f485aa7b41bb044f449d6031afe29fcdbbeade164c03601
|
@@ -18,16 +18,16 @@ module Dependabot
|
|
18
18
|
class NoHistoryInCommon < StandardError; end
|
19
19
|
|
20
20
|
attr_reader :source, :dependencies, :files, :base_commit,
|
21
|
-
:credentials, :
|
22
|
-
:
|
23
|
-
:vulnerabilities_fixed,
|
21
|
+
:credentials, :pr_message_header, :pr_message_footer,
|
22
|
+
:custom_labels, :author_details, :signature_key,
|
23
|
+
:commit_message_options, :vulnerabilities_fixed,
|
24
24
|
:reviewers, :assignees, :milestone, :branch_name_separator,
|
25
25
|
:branch_name_prefix, :github_redirection_service,
|
26
26
|
:custom_headers
|
27
27
|
|
28
28
|
def initialize(source:, base_commit:, dependencies:, files:, credentials:,
|
29
|
-
|
30
|
-
author_details: nil, signature_key: nil,
|
29
|
+
pr_message_header: nil, pr_message_footer: nil,
|
30
|
+
custom_labels: nil, author_details: nil, signature_key: nil,
|
31
31
|
commit_message_options: {}, vulnerabilities_fixed: {},
|
32
32
|
reviewers: nil, assignees: nil, milestone: nil,
|
33
33
|
branch_name_separator: "/", branch_name_prefix: "dependabot",
|
@@ -39,6 +39,7 @@ module Dependabot
|
|
39
39
|
@base_commit = base_commit
|
40
40
|
@files = files
|
41
41
|
@credentials = credentials
|
42
|
+
@pr_message_header = pr_message_header
|
42
43
|
@pr_message_footer = pr_message_footer
|
43
44
|
@author_details = author_details
|
44
45
|
@signature_key = signature_key
|
@@ -169,6 +170,7 @@ module Dependabot
|
|
169
170
|
files: files,
|
170
171
|
credentials: credentials,
|
171
172
|
commit_message_options: commit_message_options,
|
173
|
+
pr_message_header: pr_message_header,
|
172
174
|
pr_message_footer: pr_message_footer,
|
173
175
|
vulnerabilities_fixed: vulnerabilities_fixed,
|
174
176
|
github_redirection_service: github_redirection_service
|
@@ -15,16 +15,19 @@ module Dependabot
|
|
15
15
|
require_relative "pr_name_prefixer"
|
16
16
|
|
17
17
|
attr_reader :source, :dependencies, :files, :credentials,
|
18
|
-
:
|
19
|
-
:
|
18
|
+
:pr_message_header, :pr_message_footer,
|
19
|
+
:commit_message_options, :vulnerabilities_fixed,
|
20
|
+
:github_redirection_service
|
20
21
|
|
21
22
|
def initialize(source:, dependencies:, files:, credentials:,
|
22
|
-
|
23
|
-
|
23
|
+
pr_message_header: nil, pr_message_footer: nil,
|
24
|
+
commit_message_options: {}, vulnerabilities_fixed: {},
|
25
|
+
github_redirection_service: nil)
|
24
26
|
@dependencies = dependencies
|
25
27
|
@files = files
|
26
28
|
@source = source
|
27
29
|
@credentials = credentials
|
30
|
+
@pr_message_header = pr_message_header
|
28
31
|
@pr_message_footer = pr_message_footer
|
29
32
|
@commit_message_options = commit_message_options
|
30
33
|
@vulnerabilities_fixed = vulnerabilities_fixed
|
@@ -40,7 +43,8 @@ module Dependabot
|
|
40
43
|
end
|
41
44
|
|
42
45
|
def pr_message
|
43
|
-
|
46
|
+
suffixed_pr_message_header + commit_message_intro + \
|
47
|
+
metadata_cascades + prefixed_pr_message_footer
|
44
48
|
end
|
45
49
|
|
46
50
|
def commit_message
|
@@ -120,6 +124,12 @@ module Dependabot
|
|
120
124
|
"\n\n#{pr_message_footer}"
|
121
125
|
end
|
122
126
|
|
127
|
+
def suffixed_pr_message_header
|
128
|
+
return "" unless pr_message_header
|
129
|
+
|
130
|
+
"#{pr_message_header}\n\n"
|
131
|
+
end
|
132
|
+
|
123
133
|
def message_trailers
|
124
134
|
return unless on_behalf_of_message || signoff_message
|
125
135
|
|
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.113.
|
4
|
+
version: 0.113.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-codecommit
|