dependabot-common 0.138.3 → 0.138.4

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: e641bd769bff02bada5d6ac15aae0f36db359f9927c307380518734a1c247bc4
4
- data.tar.gz: 90f663cd6eb56dcf15293d7d2d1c024fbeaf81b3f655aeb331b533b8304431a0
3
+ metadata.gz: 14ae4d91b175345efcbfffe976cf9a20f2277473c583b07f19e6353e9d373300
4
+ data.tar.gz: be979b47ea466aac90dcb8a76700bc55de2bd7097164c8d3a42c22830a8289a0
5
5
  SHA512:
6
- metadata.gz: 30cc3c8485549d51df81a3cceb9ad9518f2b8e565e756ff91088c8fc6cf344b275daa1b47e23fa626e4113cbefffa26883649072b1d3110260ffcf8a7fd351a5
7
- data.tar.gz: 3117d469414de33432a4adce6ffdf980b7768bd32bfad5899f7a346a325ec4d3618563d1cf597f1ec73af7ecf5289a896380020062a122c862b1a5d6ecba15ae
6
+ metadata.gz: 791f65bf9e7f571729b689deecab539e90d7d4a37dc7a81d98efda97bd8133a0193bc5800155f5b93ecddd352a6ef70f0ab6899c65c5b31c136b62a8c40aded6
7
+ data.tar.gz: df3bb8557fee184c4a45fb53a096db04b3aa59d4cd697dd324d157a2dda983ef95f3d2d6504c439f0d43caafedddf4dd00ec2b17bcc9ca6600a691b149ec393c
@@ -13,6 +13,18 @@ module Dependabot
13
13
  require "dependabot/pull_request_creator/branch_namer"
14
14
  require "dependabot/pull_request_creator/labeler"
15
15
 
16
+ # Dependabot programmatically creates PRs which often include a large
17
+ # number of links to objects on `github.com`. GitHub hydrates these into
18
+ # rich links that leave a 'mention' on target Issues/Pull Requests.
19
+ #
20
+ # Due to the volume and nature of Dependabot PRs, these mentions are not
21
+ # useful and can overwhelm maintainers, so we use a redirection service
22
+ # to avoid enrichment.
23
+ #
24
+ # If you wish to disable this behaviour when using Dependabot Core directly,
25
+ # pass a nil value when initialising this class.
26
+ DEFAULT_GITHUB_REDIRECTION_SERVICE = "github-redirect.dependabot.com"
27
+
16
28
  class RepoNotFound < StandardError; end
17
29
 
18
30
  class RepoArchived < StandardError; end
@@ -46,7 +58,7 @@ module Dependabot
46
58
  reviewers: nil, assignees: nil, milestone: nil,
47
59
  branch_name_separator: "/", branch_name_prefix: "dependabot",
48
60
  label_language: false, automerge_candidate: false,
49
- github_redirection_service: "github-redirect.dependabot.com",
61
+ github_redirection_service: DEFAULT_GITHUB_REDIRECTION_SERVICE,
50
62
  custom_headers: nil, require_up_to_date_base: false,
51
63
  provider_metadata: {}, message: nil)
52
64
  @dependencies = dependencies
@@ -25,7 +25,7 @@ module Dependabot
25
25
  def initialize(source:, dependencies:, files:, credentials:,
26
26
  pr_message_header: nil, pr_message_footer: nil,
27
27
  commit_message_options: {}, vulnerabilities_fixed: {},
28
- github_redirection_service: nil)
28
+ github_redirection_service:)
29
29
  @dependencies = dependencies
30
30
  @files = files
31
31
  @source = source
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.138.3"
4
+ VERSION = "0.138.4"
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.138.3
4
+ version: 0.138.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-24 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport