dependabot-common 0.107.35 → 0.107.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dab08b4e2778f55a4ea5b31213c04384170f5730c36064276915591415fbdc58
|
|
4
|
+
data.tar.gz: 9509dfd11d9f89c3f622ccfa731fc82716c523bbdc873e2e36d4ef1c4347028d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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(
|
|
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?(
|
|
239
|
-
return unless msg.match?(
|
|
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&.
|
|
873
|
+
return last_dependabot_commit_message&.start_with?(/[A-Z]/)
|
|
874
874
|
end
|
|
875
875
|
|
|
876
|
-
capitalized_msgs = semantic_messages.
|
|
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
|
|
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
|
|
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
|
|
167
|
+
commits.find { |c| c.commit.author.name.include?(author_name) } ||
|
|
168
168
|
commits.first
|
|
169
169
|
|
|
170
170
|
commit.commit.message
|
data/lib/dependabot/version.rb
CHANGED