octokit 7.1.0 → 7.2.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: 27b858e49de1997cc637b78dd77f283f49164e16783d58b665e55da23a2fe957
4
- data.tar.gz: f2447bb4e8e8a15e45eb43ebf771a4a04d2fbb9f1615ef9cd835347bb289f33f
3
+ metadata.gz: ab72372e0317944ac3a6c8b4e166bad268bea9524ef8bde2f5cacb13ee471d28
4
+ data.tar.gz: 19be89924891fb2a771d17fb739fad7454bc8cb79c66950d7c64eb426ab2aef5
5
5
  SHA512:
6
- metadata.gz: 6e616a14ccdeba68b690f0d3956a6e8eaf45963615231c9c2d95bbef41d3da5bba70401aff57676bdcefcd9d49095cf19932c1383cd8c5d8bb9f54d246f5a48d
7
- data.tar.gz: afeaa8ff5a087af75af032b14ffb7428614bd76827fd987a35f36614601ed62d2592961ef09327357ec7b1378ca6b214ef251daa5be5afab5bee5e1c8656fd1f
6
+ metadata.gz: 38724e4929489a803f1aa9e3186633217bd8473585b35a90ee82fd2985abc361b03af97c96e089759e1c1d2388fcb6cc4fba2d496aae0abfcc214265e0a54770
7
+ data.tar.gz: b2b589fccec5e74cddc322b850ac9bd04a0dd7300476b6b3758059bcba62b7651a10d634683f0e427ea4c049e78ee52542319206571493ce84241a326af5d6d7
@@ -217,6 +217,31 @@ module Octokit
217
217
  def delete_installation(installation, options = {})
218
218
  boolean_from_response :delete, "app/installations/#{installation}", options
219
219
  end
220
+
221
+ # Returns a list of webhook deliveries for the webhook configured for a GitHub App.
222
+ #
223
+ # @param options [Hash] A customizable set of options
224
+ #
225
+ # @see https://docs.github.com/en/rest/apps/webhooks#list-deliveries-for-an-app-webhook
226
+ #
227
+ # @return [Array<Hash>] an array of hook deliveries
228
+ def list_app_hook_deliveries(options = {})
229
+ paginate('app/hook/deliveries', options) do |data, last_response|
230
+ data.concat last_response.data
231
+ end
232
+ end
233
+
234
+ # Redeliver a delivery for the webhook configured for a GitHub App.
235
+ #
236
+ # @param delivery_id [Integer] The id of a GitHub App Hook Delivery
237
+ # @param options [Hash] A customizable set of options
238
+ #
239
+ # @see https://developer.github.com/v3/apps/#redeliver-a-delivery-for-an-app-webhook
240
+ #
241
+ # @return [Boolean] Success
242
+ def deliver_app_hook(delivery_id, options = {})
243
+ boolean_from_response :post, "app/hook/deliveries/#{delivery_id}/attempts", options
244
+ end
220
245
  end
221
246
  end
222
247
  end
@@ -7,7 +7,7 @@ module Octokit
7
7
 
8
8
  # Current minor release.
9
9
  # @return [Integer]
10
- MINOR = 1
10
+ MINOR = 2
11
11
 
12
12
  # Current patch level.
13
13
  # @return [Integer]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-08-24 00:00:00.000000000 Z
13
+ date: 2023-09-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.3.5
169
169
  requirements: []
170
- rubygems_version: 3.4.0.dev
170
+ rubygems_version: 3.4.20
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Ruby toolkit for working with the GitHub API