dependabot-common 0.98.15 → 0.98.16
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: 11c44a177e9ce65e83fc2ba1d1341f3561f274cbf9b52d05042a2fc08897750c
|
|
4
|
+
data.tar.gz: acd036781abc9c1e71c513bf3f1a60ca32ba91e4b4f1b05f17e901d3b22306e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c82471c9b54234b7ede9d1a75da67acde54c143bc6f1a367a61d6d02f4f596cb31af1406c42e3bfce964f801b8eb00ac4d95dbdeb472c570bdeb288a930f03b4
|
|
7
|
+
data.tar.gz: 7dbace720e44b2146d8826dfe874a7b3c998cedc097aa6bf9840111e77e5f1ca52cab37e2da0eac92cfb6b0fc994fbd79cd8b64f2302771a7584b7f147c0e975
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "gitlab"
|
|
4
3
|
require "octokit"
|
|
5
4
|
require "dependabot/pull_request_creator"
|
|
6
5
|
|
|
@@ -348,16 +347,10 @@ module Dependabot
|
|
|
348
347
|
end
|
|
349
348
|
|
|
350
349
|
def gitlab_client_for_source
|
|
351
|
-
access_token =
|
|
352
|
-
credentials.
|
|
353
|
-
select { |cred| cred["type"] == "git_source" }.
|
|
354
|
-
find { |cred| cred["host"] == source.hostname }&.
|
|
355
|
-
fetch("password")
|
|
356
|
-
|
|
357
350
|
@gitlab_client_for_source ||=
|
|
358
|
-
::
|
|
359
|
-
|
|
360
|
-
|
|
351
|
+
Dependabot::Clients::GitlabWithRetries.for_source(
|
|
352
|
+
source: source,
|
|
353
|
+
credentials: credentials
|
|
361
354
|
)
|
|
362
355
|
end
|
|
363
356
|
|
|
@@ -14,19 +14,19 @@ module Dependabot
|
|
|
14
14
|
test).freeze
|
|
15
15
|
ESLINT_PREFIXES = %w(Breaking Build Chore Docs Fix New Update
|
|
16
16
|
Upgrade).freeze
|
|
17
|
-
GITMOJI_PREFIXES = %w(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
GITMOJI_PREFIXES = %w(alien ambulance apple arrow_down arrow_up art beers
|
|
18
|
+
bento bookmark boom bug building_construction bulb
|
|
19
|
+
busts_in_silhouette camera_flash card_file_box
|
|
20
|
+
chart_with_upwards_trend checkered_flag
|
|
21
|
+
children_crossing clown_face construction
|
|
22
|
+
construction_worker egg fire globe_with_meridians
|
|
23
|
+
green_apple green_heart hankey heavy_minus_sign
|
|
24
|
+
heavy_plus_sign iphone lipstick lock loud_sound memo
|
|
25
|
+
mute ok_hand package page_facing_up pencil2 penguin
|
|
26
|
+
pushpin recycle rewind robot rocket rotating_light
|
|
27
|
+
see_no_evil sparkles speech_balloon tada truck
|
|
28
|
+
twisted_rightwards_arrows whale wheelchair
|
|
29
|
+
white_check_mark wrench zap).freeze
|
|
30
30
|
ISSUE_TAG_REGEX =
|
|
31
31
|
/(?<=[^A-Za-z0-9\[\\]|^)\\*(?<tag>(?:\#|GH-)\d+)(?=[^A-Za-z0-9\-]|$)/.
|
|
32
32
|
freeze
|
|
@@ -832,13 +832,13 @@ module Dependabot
|
|
|
832
832
|
end
|
|
833
833
|
|
|
834
834
|
def using_gitmoji_commit_messages?
|
|
835
|
-
return false
|
|
835
|
+
return false unless recent_commit_messages.any?
|
|
836
836
|
|
|
837
|
-
gitmoji_messages =
|
|
838
|
-
|
|
839
|
-
|
|
837
|
+
gitmoji_messages =
|
|
838
|
+
recent_commit_messages.
|
|
839
|
+
select { |m| GITMOJI_PREFIXES.any? { |pre| m.match?(/:#{pre}:/i) } }
|
|
840
840
|
|
|
841
|
-
gitmoji_messages.count
|
|
841
|
+
gitmoji_messages.count / recent_commit_messages.count.to_f > 0.3
|
|
842
842
|
end
|
|
843
843
|
|
|
844
844
|
def recent_commit_messages
|
data/lib/dependabot/version.rb
CHANGED