Documentation ¶
Index ¶
- Constants
- type Branch
- type Issue
- type Milestone
- type Project
- type PullRequest
- type Release
- type Repo
- func (repo Repo) BranchURL() string
- func (repo Repo) CloneURL() string
- func (repo Repo) InsightsURL() string
- func (repo Repo) IssuesURL() string
- func (repo Repo) MilestoneURL() string
- func (repo Repo) ProjectsURL() string
- func (repo Repo) PullsURL() string
- func (repo Repo) ReleasesURL() string
- func (repo Repo) SecurityURL() string
- func (repo Repo) SettingsURL() string
- func (repo Repo) WikiURL() string
- type User
Constants ¶
const ( // IssueStateOpen describe the opened status IssueStateOpen = "open" // IssueStatusClosed describe the closed status IssueStatusClosed = "closed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct { Number int Title string State string HTMLURL string Reporter string CreatedAt time.Time ClosedAt time.Time IsPullRequest bool }
Issue describe the github issue.
func ConvertIssue ¶
ConvertIssue convert github.Issue to Issue
func ConvertIssues ¶
ConvertIssues convert array of github.Issue to array of Issue
func (Issue) GetItemSubtitle ¶
GetItemSubtitle return the subtitle text for alfred item.
func (Issue) GetItemTitle ¶
GetItemTitle return the title text for alfred item.
type Milestone ¶
type Milestone struct { Description string HTMLURL string Title string State string DueOn time.Time ClosedAt time.Time OpenIssues int ClosedIssues int }
Milestone describe the github milestone.
func ConvertMilestones ¶
ConvertMilestones convert github.Milestone to Milestone.
func (Milestone) GetItemSubtitle ¶
GetItemSubtitle return the subtitle string.
func (Milestone) GetItemTitle ¶
GetItemTitle return title string
func (Milestone) GetProgress ¶
GetProgress return the progress of the milestone
type Project ¶
Project describe the github project.
func ConvertProjects ¶
ConvertProjects convert github.Project to Project
type PullRequest ¶
type PullRequest struct { Number int State string Title string HTMLURL string User string MergedBy string CreatedAt time.Time ClosedAt time.Time MergedAt time.Time }
PullRequest describe the github pull request.
func ConvertPullRequests ¶
func ConvertPullRequests(pulls []*github.PullRequest) []PullRequest
ConvertPullRequests convert github.PullRequest to PullRequest
func (PullRequest) GetItemSubtitle ¶
func (pull PullRequest) GetItemSubtitle() string
GetItemSubtitle return a subtitle string.
func (PullRequest) GetItemTitle ¶
func (pull PullRequest) GetItemTitle() string
GetItemTitle return a title string.
type Release ¶
type Release struct { Author string `json:"author"` Name string `json:"name"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` HTMLURL string `json:"html_url"` CreatedAt github.Timestamp `json:"created_at"` PublishedAt github.Timestamp `json:"published_at"` }
func ConvertRelease ¶
func ConvertRelease(rel *github.RepositoryRelease) Release
func ConvertReleases ¶
func ConvertReleases(rels []*github.RepositoryRelease) []Release
type Repo ¶
type Repo struct { Owner string `json:"owner"` Name string `json:"name"` Description string `json:"description,omitempty"` HTMLURL string `json:"html_url"` }
Repo describe the github repository.
func ConvertRepo ¶
func ConvertRepo(repo *github.Repository) Repo
func ConvertRepos ¶
func ConvertRepos(repos []*github.Repository) []Repo
ConvertRepos convert the github.Repository to Repo.