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: cc3cc05840cef0bbafb602c779509c9e120f7d0651f91a0f838788cf9685be75
4
- data.tar.gz: b7a5a432f4d21176e00085396a9434afd41768826eb4496a7dbac52b853d51bc
3
+ metadata.gz: 11c44a177e9ce65e83fc2ba1d1341f3561f274cbf9b52d05042a2fc08897750c
4
+ data.tar.gz: acd036781abc9c1e71c513bf3f1a60ca32ba91e4b4f1b05f17e901d3b22306e5
5
5
  SHA512:
6
- metadata.gz: e0ae7c2d9bc29fdbcd6b2abae507e1cfe6e8437e71a328096b8a274878e4c00b1423b24c449ac649e5109ea9c438248bed7939c5e1dd9c80be47bc3437d1fad5
7
- data.tar.gz: b12fdb8343b3277f58f8500c9eb081a78e299ead2654e0341938fb9cf573b340b3a95c2bf1fad9d39641d3ed24cf4898351111c57b35efc856486f4a0ce3f3e1
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
- ::Gitlab.client(
359
- endpoint: source.api_endpoint,
360
- private_token: access_token || ""
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(art zap fire bug ambulance sparkles memo rocket
18
- lipstick tada white_check_mark lock apple penguin
19
- checkered_flag robot green_apple bookmark
20
- rotating_light construction green_heart arrow_down
21
- arrow_up pushpin construction_worker
22
- chart_with_upwards_trend recycle heavy_minus_sign
23
- whale heavy_plus_sign wrench globe_with_meridians
24
- pencil2 hankey rewind twisted_rightwards_arrows
25
- package alien truck page_facing_up boom bento
26
- ok_hand wheelchair bulb beers speech_balloon
27
- card_file_box loud_sound mute busts_in_silhouette
28
- children_crossing building_construction iphone
29
- clown_face egg see_no_evil camera_flash).freeze
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 if recent_commit_messages.none?
835
+ return false unless recent_commit_messages.any?
836
836
 
837
- gitmoji_messages = recent_commit_messages.select do |message|
838
- GITMOJI_PREFIXES.any? { |pre| message.match?(/:#{pre}:/i) }
839
- end
837
+ gitmoji_messages =
838
+ recent_commit_messages.
839
+ select { |m| GITMOJI_PREFIXES.any? { |pre| m.match?(/:#{pre}:/i) } }
840
840
 
841
- gitmoji_messages.count.to_f / recent_commit_messages.count > 0.3
841
+ gitmoji_messages.count / recent_commit_messages.count.to_f > 0.3
842
842
  end
843
843
 
844
844
  def recent_commit_messages
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.98.15"
4
+ VERSION = "0.98.16"
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.98.15
4
+ version: 0.98.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot