models

package
v0.0.0-...-87e4b86 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 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 Issue

type Issue struct {
	Owner     string
	Repo      string
	Number    int
	Title     string
	Body      string
	User      string
	State     string
	CreatedAt time.Time
	UpdatedAt time.Time
	Comments  []*IssueComment
	// No need for reference tracking - we only care about assignment
	URL       string
	Labels    []string
	Assignees []string
}

Issue represents a GitHub issue with all relevant data

type IssueComment

type IssueComment struct {
	ID        int64
	User      string
	Body      string
	CreatedAt time.Time
}

IssueComment represents a comment on a GitHub issue

type IssueResponder

type IssueResponder interface {
	RespondToIssueText(owner, repo string, issueNumber int, issueText string) error
}

IssueResponder defines the interface for responding to GitHub issues

Jump to

Keyboard shortcuts

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