gogs

package
v0.0.0-...-51b044e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ProviderID ...
	ProviderID = "gogs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitModel

type CommitModel struct {
	CommitHash    string `json:"id"`
	CommitMessage string `json:"message"`
}

CommitModel ...

type CreateEventModel

type CreateEventModel struct {
	Ref           string `json:"ref"`
	RefType       string `json:"ref_type"`
	CommitHash    string `json:"id"`
	CommitMessage string `json:"message"`
}

CreateEventModel ...

type HookProvider

type HookProvider struct{}

HookProvider ...

func (HookProvider) TransformRequest

func (hp HookProvider) TransformRequest(r *http.Request) hookCommon.TransformResultModel

TransformRequest ...

type PushEventModel

type PushEventModel struct {
	Ref         string        `json:"ref"`
	CheckoutSHA string        `json:"after"`
	Commits     []CommitModel `json:"commits"`
}

PushEventModel ...

Jump to

Keyboard shortcuts

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