dependabot-common 0.107.35 → 0.107.36

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: 7dde43bee3c4cd3c4662afc6699f62bef9d0436d4d38d5aa17fedc9e3b1190fe
4
- data.tar.gz: 7e59cbb90a3f5abfac98f67e7c3e3f340c1e7970dc9a2a5b0b3232cd850c4bd6
3
+ metadata.gz: dab08b4e2778f55a4ea5b31213c04384170f5730c36064276915591415fbdc58
4
+ data.tar.gz: 9509dfd11d9f89c3f622ccfa731fc82716c523bbdc873e2e36d4ef1c4347028d
5
5
  SHA512:
6
- metadata.gz: 1b9941042aa79cfa77d2074e03838597982852465682ce8f0c8d06821e0399505af5e4a164937c9fed7c249b16861cda924a2ac65e2a2c32b474ec7b47bc67d2
7
- data.tar.gz: 5ed72566b9685d2c8c0b3bf09a485ae8d2bd032c8e9708ba745bb5ca12fd6c967d390cfc30b502c8d2f26e6cf751229bcc99123538f892d8ec5235b5a26877c8
6
+ metadata.gz: 2397516a4e49e42dc34e3d265a765df97f12ed6dc8e06a8a4f256495abec1e9ac48c337f903265a3ff8afa0158a4364352d018b8526a17f8b671b1acaf42b003
7
+ data.tar.gz: 7399082da6ac187d890130c8c9278407c99ebf9cd07ed6fef7e6491567758075fc302296fde0b13f489e2bb238afc6c6c87359739ba5622afa274c666f3f70e7
@@ -210,7 +210,7 @@ module Dependabot
210
210
  return false if semantic_msgs.all? { |m| m.match?(/:\s+\[?[a-z]/) }
211
211
  end
212
212
 
213
- !commit_prefix&.match(/^[a-z]/)
213
+ !commit_prefix&.match(/\A[a-z]/)
214
214
  end
215
215
  end
216
216
 
@@ -235,8 +235,8 @@ module Dependabot
235
235
  return unless (msg = last_dependabot_commit_message)
236
236
 
237
237
  return :gitmoji if msg.start_with?("⬆️")
238
- return :conventional_prefix if msg.match?(/^(chore|build|upgrade):/i)
239
- return unless msg.match?(/^(chore|build|upgrade)\(/i)
238
+ return :conventional_prefix if msg.match?(/\A(chore|build|upgrade):/i)
239
+ return unless msg.match?(/\A(chore|build|upgrade)\(/i)
240
240
 
241
241
  :conventional_prefix_with_scope
242
242
  end
@@ -870,10 +870,11 @@ module Dependabot
870
870
  end
871
871
 
872
872
  if semantic_messages.none?
873
- return last_dependabot_commit_message&.match?(/^A-Z/)
873
+ return last_dependabot_commit_message&.start_with?(/[A-Z]/)
874
874
  end
875
875
 
876
- capitalized_msgs = semantic_messages.select { |m| m.match?(/^[A-Z]/) }
876
+ capitalized_msgs = semantic_messages.
877
+ select { |m| m.start_with?(/[A-Z]/) }
877
878
  capitalized_msgs.count.to_f / semantic_messages.count > 0.5
878
879
  end
879
880
 
@@ -928,7 +929,7 @@ module Dependabot
928
929
  def last_github_dependabot_commit_message
929
930
  recent_github_commits.
930
931
  reject { |c| c.commit&.message&.start_with?("Merge") }.
931
- find { |c| c.commit.author&.name == "dependabot[bot]" }&.
932
+ find { |c| c.commit.author&.name&.include?("dependabot") }&.
932
933
  commit&.
933
934
  message&.
934
935
  strip
@@ -157,14 +157,14 @@ module Dependabot
157
157
  git_commit(source.repo, pull_request.head.sha).
158
158
  message
159
159
  else
160
- author_name = author_details&.fetch(:name, nil) || "dependabot[bot]"
160
+ author_name = author_details&.fetch(:name, nil) || "dependabot"
161
161
  commits =
162
162
  github_client_for_source.
163
163
  pull_request_commits(source.repo, pull_request_number)
164
164
 
165
165
  commit =
166
166
  commits.find { |c| c.sha == old_commit } ||
167
- commits.find { |c| c.commit.author.name == author_name } ||
167
+ commits.find { |c| c.commit.author.name.include?(author_name) } ||
168
168
  commits.first
169
169
 
170
170
  commit.commit.message
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.107.35"
4
+ VERSION = "0.107.36"
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.107.35
4
+ version: 0.107.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot