Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIssueDoesNotExist = errors.New("discussion with the given iid does not exist")
ErrIssueDoesNotExist is returned if the requested discussion does not exist.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
Author remote.User
Body string
CreatedAt time.Time
UpdatedAt time.Time
LastEditedBy remote.User
Comments []Comment
Resolved bool
}
Comment contains the comments on an issue. Comments has a max depth of one.
type Details ¶
type Details struct {
Title string
Description string
CreatedAt time.Time
UpdatedAt time.Time
Author remote.User
BaseURL url.URL
Assignees []remote.User
Labels []Label
Discussion []Comment
}
Details contains the discussion of an issue.
func QueryGitHub ¶
QueryGitHub returns the discussion associated with the passed issueID. If the requested issue does not exist, an ErrIssueDoesNotExist is returned.
func QueryGitLab ¶
QueryGitLab returns the discussion associated with the passed issueID. If the requested issue does not exist, an ErrIssueDoesNotExist is returned.
func (*Details) UpdateUsername ¶
UpdateUsername replaces the username of the user with "you".
Click to show internal directories.
Click to hide internal directories.