Documentation
¶
Index ¶
- type Check
- type Comment
- type Commit
- type CreatePullRequestRequest
- type File
- type GitHubService
- type MergePullRequestRequest
- type PRFilter
- type PagedPullRequests
- type PullRequest
- type PullRequestDetail
- type PullRequestPage
- type RemoteBranch
- type RemoteRepository
- type Review
- type ReviewRequest
- type WorkflowRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubService ¶
type GitHubService interface {
Repository(context.Context, string) (RemoteRepository, error)
Branches(context.Context, string) ([]RemoteBranch, error)
PullRequests(context.Context, string, PRFilter) ([]PullRequest, error)
PullRequest(context.Context, string, int) (PullRequestDetail, error)
CreatePullRequest(context.Context, CreatePullRequestRequest) (PullRequest, error)
ReviewPullRequest(context.Context, ReviewRequest) error
ReadyPullRequest(context.Context, string, int) error
ClosePullRequest(context.Context, string, int) error
ReopenPullRequest(context.Context, string, int) error
MergePullRequest(context.Context, MergePullRequestRequest) error
Comment(context.Context, string, int, string) error
Checks(context.Context, string, string) ([]Check, error)
WorkflowRuns(context.Context, string, string) ([]WorkflowRun, error)
}
type MergePullRequestRequest ¶
type PagedPullRequests ¶ added in v0.2.10
type PagedPullRequests interface {
PullRequestPage(context.Context, string, PRFilter, int) (PullRequestPage, error)
}
PagedPullRequests is optional so provider adapters can migrate separately.
type PullRequest ¶
type PullRequest struct {
Number int `json:"number"`
Title string `json:"title"`
Body string `json:"body"`
State string `json:"state"`
Head string `json:"head"`
HeadRepository string `json:"head_repository,omitempty"`
Base string `json:"base"`
HeadSHA string `json:"head_sha"`
URL string `json:"url"`
Draft bool `json:"draft"`
Author string `json:"author"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
NodeID string `json:"node_id"`
}
type PullRequestDetail ¶
type PullRequestPage ¶ added in v0.2.10
type PullRequestPage struct {
Items []PullRequest
NextPage int
}
type RemoteBranch ¶
type RemoteRepository ¶
type ReviewRequest ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package app implements GitHub's domain API without a gh executable.
|
Package app implements GitHub's domain API without a gh executable. |
|
Compatibility names preserve CLI/TUI behavior while the daemon and web use the context-aware domain interfaces.
|
Compatibility names preserve CLI/TUI behavior while the daemon and web use the context-aware domain interfaces. |
Click to show internal directories.
Click to hide internal directories.