data

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID     string      `json:"id"`     // Unique ID: kind:url:action
	Action EventAction `json:"action"` // "merged", "reviewed", "authored"
	Kind   string      `json:"kind"`   // "pr", "issue"

	URL       string   `json:"url"`
	Repo      string   `json:"repo"`
	Number    int      `json:"number"`
	Title     string   `json:"title"`
	Body      string   `json:"body,omitempty"`
	Author    string   `json:"author"`
	Labels    []string `json:"labels,omitempty"`
	Reviewers []string `json:"reviewers"` // List of reviewer logins

	Timestamps Timestamps `json:"timestamps"`
	Source     Source     `json:"source"`
}

type EventAction

type EventAction string
const (
	EventActionMerged   EventAction = "merged"
	EventActionReviewed EventAction = "reviewed"
	EventActionAuthored EventAction = "authored"
)

type Source

type Source struct {
	Tool      string    `json:"tool"`
	Query     string    `json:"query"`
	FetchedAt time.Time `json:"fetchedAt"`
}

type Timestamps

type Timestamps struct {
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	ClosedAt  time.Time `json:"closedAt"`
}

Jump to

Keyboard shortcuts

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