gitea

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentWebhook

type CommentWebhook struct {
	Action             string  `json:"action"`
	IsPR               bool    `json:"is_pull"`
	Issue              issue   `json:"issue"`
	Comment            comment `json:"comment"`
	ConfiguredProjects []settings.Project
}

func NewCommentWebhook

func NewCommentWebhook(raw []byte) (*CommentWebhook, bool)

func (*CommentWebhook) ProcessData

func (*CommentWebhook) Validate

func (w *CommentWebhook) Validate() error

type PullWebhook

type PullWebhook struct {
	Action             string        `json:"action"`
	PullRequest        pullRequest   `json:"pull_request"`
	RawRepository      rawRepository `json:"repository"`
	Repository         settings.GiteaRepository
	ConfiguredProjects []settings.Project
}

func NewPullWebhook

func NewPullWebhook(raw []byte) (*PullWebhook, bool)

func (*PullWebhook) ProcessData

func (*PullWebhook) Validate

func (w *PullWebhook) Validate() error

Jump to

Keyboard shortcuts

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