dependabot-common 0.106.13 → 0.106.14
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: b8372d215fdcc233b16421e8f620a49eb912ea5d9d126f8e338fb1f95b8a8373
|
4
|
+
data.tar.gz: e82c25f7d7b5944792fb90201fad1f70fe1876db362eb9956668914cd86648e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4497ee9df4fe9fc0c72823cad89e89f53d2f30b5fea45d6e50c5b3503ebdd07295a0a8df7f3a93269fa23f0f8794a66ec031e750aed40d603ebf4caa3a5ac021
|
7
|
+
data.tar.gz: 408e76967ddcc00687577764ce676a2859c71dbf16d8fd0c23d13969a423ab1cb265f4e64a6197009879bdae5af9f539378058c3eb8bdc08471e7c63c2e9b6ab
|
@@ -684,10 +684,16 @@ module Dependabot
|
|
684
684
|
end
|
685
685
|
|
686
686
|
def link_issues(text:, dependency:)
|
687
|
-
text.gsub(ISSUE_TAG_REGEX) do |mention|
|
687
|
+
updated_text = text.gsub(ISSUE_TAG_REGEX) do |mention|
|
688
688
|
number = mention.tr("#", "").gsub("GH-", "")
|
689
689
|
"[#{mention}](#{source_url(dependency)}/issues/#{number})"
|
690
690
|
end
|
691
|
+
|
692
|
+
updated_text.gsub(/\[(?<tag>(?:\#|GH-)?\d+)\]\(\)/) do |mention|
|
693
|
+
mention = mention.match(/(?<=\[)(.*)(?=\])/).to_s
|
694
|
+
number = mention.match(/\d+/).to_s
|
695
|
+
"[#{mention}](#{source_url(dependency)}/issues/#{number})"
|
696
|
+
end
|
691
697
|
end
|
692
698
|
|
693
699
|
def fix_relative_links(text:, base_url:)
|
@@ -748,9 +754,9 @@ module Dependabot
|
|
748
754
|
text.gsub(/\<.*?\>/) do |tag|
|
749
755
|
tag_contents = tag.match(/\<(.*?)\>/).captures.first.strip
|
750
756
|
|
751
|
-
# Unclosed calls to
|
757
|
+
# Unclosed calls to some tags overflow out of the blockquote block,
|
752
758
|
# wrecking the rest of our PRs. Other tags don't share this problem.
|
753
|
-
next "\\#{tag}" if tag_contents.start_with?("template")
|
759
|
+
next "\\#{tag}" if tag_contents.start_with?("template", "ins", "del")
|
754
760
|
|
755
761
|
tag
|
756
762
|
end
|
data/lib/dependabot/version.rb
CHANGED