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

types

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 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 {
	EventKey   string                   `json:"eventKey"`
	Actor      bbv1.UserWithLinks       `json:"actor"`
	Repository bbv1.Repository          `json:"repository"`
	Changes    []PushRequestEventChange `json:"changes"`
	Commits    []bbv1.Commit            `json:"commits"`
	ToCommit   ToCommit                 `json:"toCommit"`
}

type PushRequestEventChange

type PushRequestEventChange struct {
	Ref      Ref    `json:"ref"`
	FromHash string `json:"fromHash"`
	ToHash   string `json:"toHash"`
	RefID    string `json:"refId"`
	Type     string `json:"type"`
}

type Ref added in v0.32.0

type Ref struct {
	ID        string `json:"id"`
	DisplayID string `json:"displayId"`
	Type      string `json:"type"`
}

type ToCommit added in v0.32.0

type ToCommit struct {
	bbv1.Commit
	Parents []bbv1.Commit `json:"parents"` // bbv1.Commit also has Parents field, but its Parents has only two fields while actual payload has more.
}

Jump to

Keyboard shortcuts

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