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 +4 -4
- data/lib/gitlab/dangerfiles/commit_linter.rb +2 -1
- data/lib/gitlab/dangerfiles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e97286bdfb0262152ab62792bff988f54b6a4c4e518600fc6488868a40aa9e25
|
4
|
+
data.tar.gz: dcebdb1e4d4d97a9b6d2c532c976c1c9ce25296aab56de9bcec9444ac7f7847a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
45
|
+
SUGGESTIONS_APPLIED_COMMIT_REGEX.match?(commit.message)
|
45
46
|
end
|
46
47
|
|
47
48
|
def merge?
|
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.
|
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-
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-gitlab
|