dependabot-common 0.171.1 → 0.171.5

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: e87654aabfa22d3925e4894cf7fd5a0e6febd801b4d600b2f962d5dd28950bae
4
- data.tar.gz: aea8ecad083912fb04a7de740b678892ef82b5434d81b2ce38e17f0d6ef7d1a6
3
+ metadata.gz: 071b7ebd34b4d2e80c6de5d36dbddb505c3932d4508782ea59c40c98e0dc8cb9
4
+ data.tar.gz: ee8f48616acfb0743aa9b7aa8d0eaafe999c4e1b410f0291731bbeeb9c222922
5
5
  SHA512:
6
- metadata.gz: 538bd863cc561a6238573503e50cbf1b9fcdf00c8ad17bc37cc76d3e7df791d7c93d5972ebd6a407541d0d3049abde089013e465888f5e0c16a91490ff89839a
7
- data.tar.gz: f57fe1b5c6948785e179af3faf699efa28573362a3520a988d8c52e96d6ab9cb3e45148e04df67db143498ca90fa0b76c66febf650d187b6f68c4903c784c452
6
+ metadata.gz: acb66a39a076a2f30161dcf8187e5f665e0add2db3a4b7784778929171b60f79793560f9accd8f7b8c7617733ee4bf8eea78a04c30e6d483dc1e4b4d2d32c9fb
7
+ data.tar.gz: 6c52e0680d2e35215d5934c4dc9bcd64467a4f3f9f8f1e633758a4a0fae91d09f1989533a4cfe0ec083f34bbb3559aa3634b3a29aeedddea4e9ed10af9753831
@@ -16,7 +16,7 @@ module Dependabot
16
16
 
17
17
  # Earlier entries are preferred
18
18
  CHANGELOG_NAMES = %w(
19
- changelog news changes history release whatsnew
19
+ changelog news changes history release whatsnew releases
20
20
  ).freeze
21
21
 
22
22
  attr_reader :source, :dependency, :credentials, :suggested_changelog_url
@@ -351,23 +351,24 @@ module Dependabot
351
351
  end
352
352
 
353
353
  def create_github_language_label
354
- langauge_name =
355
- self.class.label_details_for_package_manager(package_manager).
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
- langauge_name,
360
- self.class.label_details_for_package_manager(package_manager).
361
- fetch(:colour),
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, langauge_name].uniq
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, langauge_name].uniq
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
@@ -189,7 +189,7 @@ module Dependabot
189
189
  pr_description: message.pr_message,
190
190
  pr_name: message.pr_name,
191
191
  author_details: author_details,
192
- labeler: labeler,
192
+ labeler: nil,
193
193
  work_item: provider_metadata&.fetch(:work_item, nil)
194
194
  )
195
195
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.171.1"
4
+ VERSION = "0.171.5"
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.171.1
4
+ version: 0.171.5
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-12 00:00:00.000000000 Z
11
+ date: 2022-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport