dependabot-common 0.171.2 → 0.172.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: 1f51acd669b8fdd42ef7858f1adb07ed93eae449480f1f314c898ba3ea15cc01
4
- data.tar.gz: c2542e1ec62d39aedae3764596091704882840c3122d605f1eecbf9a5edbe454
3
+ metadata.gz: 7958db25c27d3a30aa2fe18b9d1a53b238548cef33a355b53c3130f55f10dc5b
4
+ data.tar.gz: c2afd0feb65aec1665c2f9b1bdd25657896bfefe4dfbcdb60d15435f532db3ea
5
5
  SHA512:
6
- metadata.gz: aa1cc64c7d221cacfa151fd3bee264af809c9a3e114ba968434c158479651d7e56635cf0e539ed2ca4973455e4c4c38d3b0724291e4f82495ae6f08f71ef9cb9
7
- data.tar.gz: 3734a39cc6aeadcb2ea2bca95af37a04ddc12f490fe01224f769f61390bfd99114da8e51fc6683326e2ce7e972a519c169bc3ef72e994a71827142e6d9f5658e
6
+ metadata.gz: 69587c031e3469582316da432139e0f66459b7f219c1c89c5849f0490b2dac4dcb9b2d3704f61c136d07eb2b7af5c188d61e61e959d8545277ad18afd5f0a671
7
+ data.tar.gz: 9a5db4f61df8dc8c89251e1a3987f0e16a474ceb2692f41008a275ecf6ca4a6f7ec2300b909698834e28f2f512a074b71cb8fd96c21fb71504847392d09ac39a
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.171.2"
4
+ VERSION = "0.172.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.171.2
4
+ version: 0.172.0
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-14 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport