dependabot-common 0.170.2 → 0.171.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/pull_request_creator/labeler.rb +11 -10
- data/lib/dependabot/pull_request_creator.rb +1 -1
- data/lib/dependabot/source.rb +14 -1
- 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: f8697103d098a2a0e77fde56288d1532e18865457139115641d7ff11d912c503
|
4
|
+
data.tar.gz: 1e4bee15d30cca827fc448420a291955fced54f8920696f247029468b3999c1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41392a215a9e756fb3140b2aaa060972aca89b16086cd192ebc8669718f022b540a3e66d799e295cd5aa42a76302893898909578803c868653d9f271af39f59
|
7
|
+
data.tar.gz: 77243ca499cf2b0a6334a5663d38e541055a841ed3d795cbe3ae756223f6857c541c9557fb5e9969037b2f029ed10eab76c784b40d263fc9b1e2750b873e7bf6
|
@@ -351,23 +351,24 @@ module Dependabot
|
|
351
351
|
end
|
352
352
|
|
353
353
|
def create_github_language_label
|
354
|
-
|
355
|
-
|
356
|
-
fetch(:name)
|
354
|
+
label = self.class.label_details_for_package_manager(package_manager)
|
355
|
+
language_name = label.fetch(:name)
|
357
356
|
github_client_for_source.add_label(
|
358
357
|
source.repo,
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
description: "Pull requests that update #{langauge_name.capitalize} "\
|
363
|
-
"code",
|
358
|
+
language_name,
|
359
|
+
label.fetch(:colour),
|
360
|
+
description: label.fetch(:description) { default_description_for(language_name) },
|
364
361
|
accept: "application/vnd.github.symmetra-preview+json"
|
365
362
|
)
|
366
|
-
@labels = [*@labels,
|
363
|
+
@labels = [*@labels, language_name].uniq
|
367
364
|
rescue Octokit::UnprocessableEntity => e
|
368
365
|
raise unless e.errors.first.fetch(:code) == "already_exists"
|
369
366
|
|
370
|
-
@labels = [*@labels,
|
367
|
+
@labels = [*@labels, language_name].uniq
|
368
|
+
end
|
369
|
+
|
370
|
+
def default_description_for(language)
|
371
|
+
"Pull requests that update #{language.capitalize} code"
|
371
372
|
end
|
372
373
|
|
373
374
|
def create_gitlab_language_label
|
data/lib/dependabot/source.rb
CHANGED
@@ -38,11 +38,24 @@ module Dependabot
|
|
38
38
|
(?<repo>[\w.-]+/([\w.-]+/)?(?:_git/)(?:(?!\.git|\.\s)[\w.-])+)
|
39
39
|
}x.freeze
|
40
40
|
|
41
|
+
CODECOMMIT_SOURCE = %r{
|
42
|
+
(?<protocol>(http://|https://|git://|ssh://))
|
43
|
+
git[-]
|
44
|
+
(?<provider>codecommit)
|
45
|
+
(?:.*)
|
46
|
+
(?:\.com/v1/repos/)
|
47
|
+
(?<repo>([^/]*))
|
48
|
+
(?:/)?(?<directory>[^?]*)?
|
49
|
+
[?]?
|
50
|
+
(?<ref>.*)?
|
51
|
+
}x.freeze
|
52
|
+
|
41
53
|
SOURCE_REGEX = /
|
42
54
|
(?:#{GITHUB_SOURCE})|
|
43
55
|
(?:#{GITLAB_SOURCE})|
|
44
56
|
(?:#{BITBUCKET_SOURCE})|
|
45
|
-
(?:#{AZURE_SOURCE})
|
57
|
+
(?:#{AZURE_SOURCE})|
|
58
|
+
(?:#{CODECOMMIT_SOURCE})
|
46
59
|
/x.freeze
|
47
60
|
|
48
61
|
IGNORED_PROVIDER_HOSTS = %w(gitbox.apache.org svn.apache.org fuchsia.googlesource.com).freeze
|
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.
|
4
|
+
version: 0.171.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|