// Copyright 2021 The go-github AUTHORS. All rights reserved.//// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package githubimport ()// ListHookDeliveries lists deliveries of an App webhook.//// GitHub API docs: https://docs.github.com/rest/apps/webhooks#list-deliveries-for-an-app-webhook////meta:operation GET /app/hook/deliveriesfunc ( *AppsService) ( context.Context, *ListCursorOptions) ([]*HookDelivery, *Response, error) { , := addOptions("app/hook/deliveries", )if != nil {returnnil, nil, } , := .client.NewRequest("GET", , nil)if != nil {returnnil, nil, } := []*HookDelivery{} , := .client.Do(, , &)if != nil {returnnil, , }return , , nil}// GetHookDelivery returns the App webhook delivery with the specified ID.//// GitHub API docs: https://docs.github.com/rest/apps/webhooks#get-a-delivery-for-an-app-webhook////meta:operation GET /app/hook/deliveries/{delivery_id}func ( *AppsService) ( context.Context, int64) (*HookDelivery, *Response, error) { := fmt.Sprintf("app/hook/deliveries/%v", ) , := .client.NewRequest("GET", , nil)if != nil {returnnil, nil, } := new(HookDelivery) , := .client.Do(, , )if != nil {returnnil, , }return , , nil}// RedeliverHookDelivery redelivers a delivery for an App webhook.//// GitHub API docs: https://docs.github.com/rest/apps/webhooks#redeliver-a-delivery-for-an-app-webhook////meta:operation POST /app/hook/deliveries/{delivery_id}/attemptsfunc ( *AppsService) ( context.Context, int64) (*HookDelivery, *Response, error) { := fmt.Sprintf("app/hook/deliveries/%v/attempts", ) , := .client.NewRequest("POST", , nil)if != nil {returnnil, nil, } := new(HookDelivery) , := .client.Do(, , )if != nil {returnnil, , }return , , nil}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.