Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventActor

type EventActor struct {
	ID   int
	Name string
}

type PullRequestEvent

type PullRequestEvent struct {
	Actor       bbv1.UserWithLinks `json:"actor"`
	PullRequest bbv1.PullRequest   `json:"pullRequest"`
	EventKey    string             `json:"eventKey"`

	// Comment should be used when event is `pr:comment:added` or `pr:comment:edited`.
	Comment bbv1.ActivityComment `json:"comment"`

	// CommentParentID and PreviousComment should be used when event is `pr:comment:edited`.
	CommentParentID string `json:"commentParentId"`
	PreviousComment string `json:"previousComment"`
}

type PushRequestEvent

type PushRequestEvent struct {
	Actor      bbv1.UserWithLinks       `json:"actor"`
	Repository bbv1.Repository          `json:"repository"`
	Changes    []PushRequestEventChange `json:"changes"`
	Commits    []bbv1.Commit            `json:"commits"`
}

type PushRequestEventChange

type PushRequestEventChange struct {
	ToHash string `json:"toHash"`
	RefID  string `json:"refId"`
}

Jump to

Keyboard shortcuts

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