models

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID        int       `json:"id"`
	IssueURL  string    `json:"issue_url"`
	HTMLURL   string    `json:"html_url"`
	User      User      `json:"user"`
	CreatedAt string    `json:"created_at"`
	UpdatedAt string    `json:"updated_at"`
	Body      string    `json:"body"`
	Reactions Reactions `json:"reactions"`
}

type Issue

type Issue struct {
	ID          int          `json:"id"`
	Number      int          `json:"number"` // issue number
	Title       string       `json:"title"`
	URL         string       `json:"html_url"`
	Body        string       `json:"body"`
	User        User         `json:"user"`
	State       string       `json:"state"`
	Locked      bool         `json:"locked"`
	Labels      []Label      `json:"labels"`
	CreatedAt   string       `json:"created_at"`
	UpdatedAt   string       `json:"updated_at"`
	ClosedAt    string       `json:"closed_at"`
	Comments    []Comment    `json:"-"` // ignore for un-marshalling
	Reactions   Reactions    `json:"reactions"`
	PullRequest *PullRequest `json:"pull_request,omitempty"` // used for filtering pull requests
}

type Label

type Label struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Color       string `json:"color"`
	Default     bool   `json:"default"`
}

type PullRequest

type PullRequest struct {
	HTMLURL  string `json:"html_url"`
	DiffURL  string `json:"diff_url"`
	PatchURL string `json:"patch_url"`
	MergedAt string `json:"merged_at"`
}

type Reactions

type Reactions struct {
	URL        string `json:"url"`
	TotalCount int    `json:"total_count"`
	ThumbUp    int    `json:"+1"`
	ThumbDown  int    `json:"-1"`
	Laugh      int    `json:"laugh"`
	Hooray     int    `json:"hooray"`
	Confused   int    `json:"confused"`
	Heart      int    `json:"heart"`
	Rocket     int    `json:"rocket"`
	Eyes       int    `json:"eyes"`
}

type User

type User struct {
	Login     string `json:"login"`
	ID        int    `json:"id"`
	URL       string `json:"html_url"`
	AvatarURL string `json:"avatar_url"`
}

Jump to

Keyboard shortcuts

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