dependabot-common 0.138.1 → 0.138.6

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: 8b67173d817d1d43bc6495b7aeb76616c5ee36db91178124e87a533be26f36a3
4
- data.tar.gz: 8e68c82708bbd1e6bf57eba1bde3d56af198e205e0f6db904413ffacad504836
3
+ metadata.gz: '078f6b28d97e19365ee70ecd7f2db8b13a586602285a4a1f235b2e2d3262d836'
4
+ data.tar.gz: 9c0a817aed80bee0ce1365f2207b0adeb38cb15163fb10abf4a41107677bec5f
5
5
  SHA512:
6
- metadata.gz: fa18930f9bb899054e009f66764764d7df0380c88a2051968112762e90c4011791b16e69054543d3cc1fc4e6de858e6c6e72267284d1a851c42bf51f031229e7
7
- data.tar.gz: a391af9d047a10d264cfef80471a60da07cb08cea30a480ba4305e96824efdd123b1d26d48269e1805231b0be2237cce3e740206483d241e1deb706bb60935aa
6
+ metadata.gz: 51e0d5bdb17e739d8a541983ee60bd388ff5085748e4ef392a391e968f08a2b921345b3d6f4e421a5701e2780afc21e9886206bd3ea7409160ec57d2813483d4
7
+ data.tar.gz: 2e363a31498207ddba53b8dccb46a7f66043722cc154182717aa5a92e908d3a6aeb4bc1453b66c3d13bcb1020c0dfe710aa91beadc19873984bb423783522185
@@ -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
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "dependabot/pull_request_updater/github"
4
4
  require "dependabot/pull_request_updater/gitlab"
5
+ require "dependabot/pull_request_updater/azure"
5
6
 
6
7
  module Dependabot
7
8
  class PullRequestUpdater
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.138.1"
4
+ VERSION = "0.138.6"
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.1
4
+ version: 0.138.6
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-17 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport