dependabot-common 0.260.0 → 0.261.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/dependency.rb +12 -1
- data/lib/dependabot/pull_request_creator/github.rb +3 -0
- data/lib/dependabot.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140a2513bccfbb746fb4664fa540b55404d1d2be1b7c65c7abb76a9858ef50f7
|
4
|
+
data.tar.gz: '093cefbf71cdf371cc696b0150f96c02125e2f23dafa7da70736e1f168b2eec2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6713a5ddcd39b1b0cf9f6a3105fa1035e16960313099489fea682e4bda696c13ba86e77ad559f9655546ec9e16fee102af6729b14f0d31a2744b856f6a7ea38
|
7
|
+
data.tar.gz: 18cb16bfe6842eaed5175c65d04a7b8d880550018e6e0f78b7365eb182676a93dd2fb799656ad6ceb6f7c838f866d54657923b9c61e9728d024ea474d13b8ffa
|
@@ -79,6 +79,9 @@ module Dependabot
|
|
79
79
|
sig { returns(T.nilable(T::Array[T::Hash[Symbol, T.untyped]])) }
|
80
80
|
attr_reader :previous_requirements
|
81
81
|
|
82
|
+
sig { returns(T.nilable(String)) }
|
83
|
+
attr_accessor :directory
|
84
|
+
|
82
85
|
sig { returns(T.nilable(T::Array[T::Hash[Symbol, T.untyped]])) }
|
83
86
|
attr_reader :subdependency_metadata
|
84
87
|
|
@@ -96,13 +99,14 @@ module Dependabot
|
|
96
99
|
version: T.nilable(T.any(String, Dependabot::Version)),
|
97
100
|
previous_version: T.nilable(String),
|
98
101
|
previous_requirements: T.nilable(T::Array[T::Hash[T.any(Symbol, String), T.untyped]]),
|
102
|
+
directory: T.nilable(String),
|
99
103
|
subdependency_metadata: T.nilable(T::Array[T::Hash[T.any(Symbol, String), String]]),
|
100
104
|
removed: T::Boolean,
|
101
105
|
metadata: T.nilable(T::Hash[T.any(Symbol, String), String])
|
102
106
|
).void
|
103
107
|
end
|
104
108
|
def initialize(name:, requirements:, package_manager:, version: nil,
|
105
|
-
previous_version: nil, previous_requirements: nil,
|
109
|
+
previous_version: nil, previous_requirements: nil, directory: nil,
|
106
110
|
subdependency_metadata: [], removed: false, metadata: {})
|
107
111
|
@name = name
|
108
112
|
@version = T.let(
|
@@ -121,6 +125,7 @@ module Dependabot
|
|
121
125
|
T.nilable(T::Array[T::Hash[Symbol, T.untyped]])
|
122
126
|
)
|
123
127
|
@package_manager = package_manager
|
128
|
+
@directory = directory
|
124
129
|
unless top_level? || subdependency_metadata == []
|
125
130
|
@subdependency_metadata = T.let(
|
126
131
|
subdependency_metadata&.map { |h| symbolize_keys(h) },
|
@@ -160,6 +165,7 @@ module Dependabot
|
|
160
165
|
"requirements" => requirements,
|
161
166
|
"previous_version" => previous_version,
|
162
167
|
"previous_requirements" => previous_requirements,
|
168
|
+
"directory" => directory,
|
163
169
|
"package_manager" => package_manager,
|
164
170
|
"subdependency_metadata" => subdependency_metadata,
|
165
171
|
"removed" => removed? ? true : nil
|
@@ -356,6 +362,11 @@ module Dependabot
|
|
356
362
|
end
|
357
363
|
end
|
358
364
|
|
365
|
+
sig { returns(T::Boolean) }
|
366
|
+
def requirements_changed?
|
367
|
+
(requirements - T.must(previous_requirements)).any?
|
368
|
+
end
|
369
|
+
|
359
370
|
private
|
360
371
|
|
361
372
|
sig { void }
|
@@ -442,6 +442,9 @@ module Dependabot
|
|
442
442
|
rescue Octokit::NotFound
|
443
443
|
# This can happen if a passed assignee login is now an org account
|
444
444
|
nil
|
445
|
+
rescue Octokit::UnprocessableEntity => e
|
446
|
+
# This can happen if an invalid assignee was passed
|
447
|
+
raise unless e.message.include?("Could not add assignees")
|
445
448
|
end
|
446
449
|
|
447
450
|
sig { params(pull_request: T.untyped).void }
|
data/lib/dependabot.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.
|
4
|
+
version: 0.261.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-codecommit
|
@@ -597,7 +597,7 @@ licenses:
|
|
597
597
|
- MIT
|
598
598
|
metadata:
|
599
599
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
600
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
600
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.261.0
|
601
601
|
post_install_message:
|
602
602
|
rdoc_options: []
|
603
603
|
require_paths:
|