gitlab-dangerfiles 2.1.3 → 2.1.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: d49d453f0fec847768490aa8c5f7d5790620f588f2c1afb7c2d9d707ae2155b9
4
- data.tar.gz: 4af3ce84ee6a755477b0f9dc2f97ba43349f3fcbbdf6494a754ccb940345b6e7
3
+ metadata.gz: e97286bdfb0262152ab62792bff988f54b6a4c4e518600fc6488868a40aa9e25
4
+ data.tar.gz: dcebdb1e4d4d97a9b6d2c532c976c1c9ce25296aab56de9bcec9444ac7f7847a
5
5
  SHA512:
6
- metadata.gz: e1b2d019c5d1f83c1f01f1dfb4001c02fe8634feade3016cd7b7b479abb27aa4d5c409b45b37928fd379822d9a138c9efb3504fe0c8f3c5e23f2f211771d82c3
7
- data.tar.gz: acd1dcd443b2ee129f0db7a13b4946bb373e164ef1e52c06b1b1a91e9256124304375d09c4dcaa26f51b667886c1345e3c55f36653f4a5be146dc7d2c900e448
6
+ metadata.gz: d117a697f702f3b2c456957b811e850a564281b9190104b552c2784415e8d26505ed1cc300cef281dab94864cb41bd89bdf8c21d9b42c1875222b8b959d43b53
7
+ data.tar.gz: 8e5539c873291b0328cc7a5cc2ac5b6bc1965fd550ba04a0700b2e5a19da89f979d30c56967990d4b41de989cd7a5d58a9e3bf6285e49449668431d04f22fb46
@@ -12,6 +12,7 @@ module Gitlab
12
12
  SHORT_REFERENCE_REGEX = %r{([\w\-\/]+)?(?<!`)(#|!|&)\d+(?<!`)}.freeze
13
13
  # Milestone
14
14
  MS_SHORT_REFERENCE_REGEX = %r{([\w\-\/]+)?(?<!`)%"?\d{1,3}\.\d{1,3}"?(?<!`)}.freeze
15
+ SUGGESTIONS_APPLIED_COMMIT_REGEX = /Apply \d+ suggestion\(s\) to \d+ file\(s\)/.freeze
15
16
 
16
17
  def self.problems_mapping
17
18
  super.merge(
@@ -41,7 +42,7 @@ module Gitlab
41
42
  end
42
43
 
43
44
  def suggestion?
44
- commit.message.start_with?("Apply suggestion to")
45
+ SUGGESTIONS_APPLIED_COMMIT_REGEX.match?(commit.message)
45
46
  end
46
47
 
47
48
  def merge?
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "2.1.3"
3
+ VERSION = "2.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-gitlab