dependabot-core 0.76.9 → 0.76.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea5efa14e9bf750844ec81c5566726109c3300827886e530423cdb46dd163d76
|
4
|
+
data.tar.gz: 2649ba3489b8286fe121bb203f6afb012e4856e11911c758a0f6f6e70b066c99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c15ebc60b7ed05e863cd331d8881473a3c8cd191c0e49b8837213231a122ff0fede2fe034b80d1ec16ef68d2baa31e15f2309bc1ff1b8e2c85c911f11797500
|
7
|
+
data.tar.gz: 4f04914e2406c1a48344e3b486c38b5c555eceb1406e5c99335b3961a600803d8d2ec71e2b812435fee08a4c33f3869d24d54cdcb12a94e9d0be445c03c5bbaa
|
data/CHANGELOG.md
CHANGED
@@ -116,11 +116,12 @@ module Dependabot
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def tag_for_new_version
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
119
|
+
@tag_for_new_version ||=
|
120
|
+
CommitsFinder.new(
|
121
|
+
dependency: dependency,
|
122
|
+
source: source,
|
123
|
+
credentials: credentials
|
124
|
+
).new_tag
|
124
125
|
end
|
125
126
|
|
126
127
|
def full_changelog_text
|
@@ -403,6 +403,7 @@ module Dependabot
|
|
403
403
|
end
|
404
404
|
msg += "</details>"
|
405
405
|
msg = link_issues(text: msg, dependency: dep)
|
406
|
+
msg = fix_relative_links(text: msg, base_url: releases_url(dep))
|
406
407
|
sanitize_template_tags(msg)
|
407
408
|
end
|
408
409
|
|
@@ -653,8 +654,10 @@ module Dependabot
|
|
653
654
|
end
|
654
655
|
|
655
656
|
def fix_relative_links(text:, base_url:)
|
656
|
-
text.gsub(/\[.*?\]\(
|
657
|
-
|
657
|
+
text.gsub(/\[.*?\]\([^)]+\)/) do |link|
|
658
|
+
next link if link.include?("://")
|
659
|
+
|
660
|
+
relative_path = link.match(/\((.*?)\)/).captures.last
|
658
661
|
base = base_url.split("://").last.gsub(%r{[^/]*$}, "")
|
659
662
|
path = File.join(base, relative_path)
|
660
663
|
absolute_path =
|
data/lib/dependabot/version.rb
CHANGED