dependabot-common 0.106.13 → 0.106.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fe2082ef8e24299e06f38ff1d5fed9a435a54c6ec504219fb32784d3f1b7c5a
4
- data.tar.gz: 33e47b1d971fd8cac06a2ed90f012ba9d0ca1673d4975b4392445a00a81277eb
3
+ metadata.gz: b8372d215fdcc233b16421e8f620a49eb912ea5d9d126f8e338fb1f95b8a8373
4
+ data.tar.gz: e82c25f7d7b5944792fb90201fad1f70fe1876db362eb9956668914cd86648e4
5
5
  SHA512:
6
- metadata.gz: acf52546157a4bcc2d8d72f95892d48fab97a1eea680bd0e84114ae2b1758b89f6197761a4087c79ee534cac420213ff0a8a090d30989ac9db3d210770863e7a
7
- data.tar.gz: d8ef8a7b013a1f75b66b069ac2e9388db56cb4642c0e15300a820a54cb1bb613064424182d475bd83c24ad2cec8955c7fd0f71c8247bd13254bfb0aabe8e613b
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 template overflow out of the blockquote block,
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.106.13"
4
+ VERSION = "0.106.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.106.13
4
+ version: 0.106.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot