webhook

package
v0.0.0-...-3796b3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleWebhook

func HandleWebhook(w http.ResponseWriter, r *http.Request)

Types

type LogActionFunc

type LogActionFunc func(values map[string]string, payload WorkflowRunPayload, dynamoService *dynamodb.DynamoDBService, folder string) error

type WorkflowRunPayload

type WorkflowRunPayload struct {
	WorkflowRun struct {
		ID         int64  `json:"id"`
		NodeID     string `json:"node_id"`
		Path       string `json:"path"`
		Status     string `json:"status"`
		Conclusion string `json:"conclusion"`
		WorkflowID int64  `json:"workflow_id"`
		RunNumber  int64  `json:"run_number"`
		Event      string `json:"event"`
		CreatedAt  string `json:"created_at"`
		UpdatedAt  string `json:"updated_at"`
		LogsURL    string `json:"logs_url"`
	} `json:"workflow_run"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL