gitlab-dangerfiles 4.3.2 → 4.4.0

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: d65ff64b94d8714d7a5bb9cf9ebe203d13fcffbc88fe46a093d1f8b1c9921298
4
- data.tar.gz: 86599baa81ee6c00f2bd624ae661f284a38b0b98d0ad64779aa22383816edfce
3
+ metadata.gz: aba5fe5b513843f893ab44f12950f4e870d37b331b8e43e50e884498cf924acb
4
+ data.tar.gz: b9f57ccf7cdc4e41cf9fa6af85ec314c83e5e07f4dd00f062251b492aa50d573
5
5
  SHA512:
6
- metadata.gz: afc88dc14df24c36463b973803d8ea9026ff35fba9e3e0031b129c3752b10d740d09ebad208fd724e001720f0d11765159fc756d9760c3b64ccfc0abc79b05f7
7
- data.tar.gz: 421b62b93d8a5800f6ab6bbc654df8369ab26788d877a748ce5bd15122bde896c5155a290004cd948c23d4e8643f3f5307c7e9503c7d61f0b8b49a46a5112c01
6
+ metadata.gz: 83776a852572740d36b35eb3a7080faef40f5237434004f0767b26ce61979bd664bf8e4fdd86ed3280e0d678273431c7b4f485b814fd9ec96c46905ba16503ec
7
+ data.tar.gz: e6e60640c4e5caa08e2f82350deb39fa349b44295b2677965638f4cdf36ee7067bcbff4bfa80c1ab305067335c13e074bd0e7a69a1626ae82aa9d132b43f1277
data/.gitlab-ci.yml CHANGED
@@ -33,8 +33,6 @@ test:rspec:
33
33
  stage: test
34
34
  script:
35
35
  - bundle exec rspec
36
- # On MRs, ensure that danger works without development dependencies
37
- - '[ -z "$CI_MERGE_REQUEST_IID" ] || BUNDLE_ONLY=default bundle exec danger dry_run'
38
36
  parallel:
39
37
  matrix:
40
38
  - RUBY_VERSION: ['3.0', '3.1', '3.2']
@@ -90,7 +90,7 @@ module Gitlab
90
90
  private
91
91
 
92
92
  def default_markdown_name(username)
93
- "[`#{username}`](https://gitlab.com/#{username})"
93
+ "`@#{username}` [![profile link](https://gitlab.com/gitlab-org/gitlab-svgs/-/raw/main/sprite_icons/user.svg?ref_type=heads)](https://gitlab.com/#{username})"
94
94
  end
95
95
 
96
96
  def process_projects(projects)
@@ -119,12 +119,12 @@ module Gitlab
119
119
 
120
120
  def offset_diff_compared_to_author(author)
121
121
  diff = floored_offset_hours - author.floored_offset_hours
122
- return "same timezone as `@#{author.username}`" if diff == 0
122
+ return "same timezone as author" if diff == 0
123
123
 
124
124
  ahead_or_behind = diff < 0 ? "behind" : "ahead of"
125
125
  pluralized_hours = pluralize(diff.abs, "hour", "hours")
126
126
 
127
- "#{pluralized_hours} #{ahead_or_behind} `@#{author.username}`"
127
+ "#{pluralized_hours} #{ahead_or_behind} author"
128
128
  end
129
129
 
130
130
  def has_capability?(project, category, kind, labels)
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "4.3.2"
3
+ VERSION = "4.4.0"
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: 4.3.2
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake