gitlab-dangerfiles 2.9.0 → 2.9.3
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: 51f1b9ce0d37840b9810a3bc19cdf3c6e35ed8d14f7cf0495a52e1410468b34e
|
4
|
+
data.tar.gz: 763783874f9e0e72b33408f2718d6151a7530526ab3498529ea40d2c02fa4f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b204d42cc13b8b06801f4da675617e63b56fba631b4122ed4140e0188ea5143d5ec07732b41c6581426d4a5e9e48939f2e260b9f3636afcaac1a96f2aaf78e29
|
7
|
+
data.tar.gz: 6bc734af3d2148cbfb67e23e2cef84f7b36ffb7b82f82b8b9d9d2ca410f95a72d5f72b68dc4d0e59d4f8811df61a536e3282793a6c22f37058e1038e0bc0b6db
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
unless helper.has_scoped_label_with_scope?("type")
|
4
4
|
warn "Please add a [merge request type](https://about.gitlab.com/handbook/engineering/metrics/#work-type-classification) to this merge request."
|
5
5
|
end
|
@@ -115,11 +115,15 @@ module Gitlab
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def files_changed
|
118
|
-
|
118
|
+
# In some cases, the commits cannot be found so it's better to just move one
|
119
|
+
# See https://gitlab.com/gitlab-org/gitlab/-/issues/227814.
|
120
|
+
commit.diff_parent.size rescue 0
|
119
121
|
end
|
120
122
|
|
121
123
|
def lines_changed
|
122
|
-
|
124
|
+
# In some cases, the commits cannot be found so it's better to just move one
|
125
|
+
# See https://gitlab.com/gitlab-org/gitlab/-/issues/227814.
|
126
|
+
commit.diff_parent.lines rescue 0
|
123
127
|
end
|
124
128
|
|
125
129
|
def many_changes?
|
@@ -63,6 +63,6 @@ RSpec.shared_context "with dangerfile" do
|
|
63
63
|
|
64
64
|
before do
|
65
65
|
allow(dangerfile).to receive(:git).and_return(fake_git)
|
66
|
-
allow(dangerfile.helper).to receive(:changes).and_return(changes)
|
66
|
+
allow(dangerfile.helper).to receive(:changes).and_return(changes) if dangerfile.respond_to?(:helper)
|
67
67
|
end
|
68
68
|
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.9.
|
4
|
+
version: 2.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-gitlab
|