Documentation
¶
Index ¶
- Constants
- type Action
- type Builder
- type Comment
- type Forum
- type Github
- func (g *Github) CloseAction(number int) error
- func (g *Github) CreateAction(action *Action) (int, error)
- func (g *Github) GetActions(state string, timestamp time.Time) ([]*Action, error)
- func (g *Github) GetCommentatingResolution(comments []*Comment, resolutions map[string]struct{}, ...) (string, bool)
- func (g *Github) GetNewComments(action *Action, prevTime time.Time) ([]*Comment, error)
- func (g *Github) GetVotingResolution(comments []*Comment) (string, bool)
- func (g *Github) PostComment(body string, id int) error
- type GithubBuilder
Constants ¶
View Source
const IssueSort = "updated"
View Source
const MaxPageSize = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forum ¶
type Forum interface {
GetVotingResolution(comments []*Comment) (string, bool)
GetCommentatingResolution(comments []*Comment, resolutions map[string]struct{}, moderators map[string]struct{}) (string, bool)
CloseAction(number int) error
CreateAction(action *Action) (int, error)
GetActions(state string, prevTime time.Time) ([]*Action, error)
GetNewComments(action *Action, prevTime time.Time) ([]*Comment, error)
PostComment(body string, id int) error
}
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (*Github) CloseAction ¶
func (*Github) GetActions ¶
func (*Github) GetCommentatingResolution ¶
func (*Github) GetNewComments ¶
func (*Github) GetVotingResolution ¶
type GithubBuilder ¶
type GithubBuilder struct {
AccessToken string
AccountName string
RepositoryOwner string
RepositoryName string
IssueLabels *[]string
}
func InitializeGithubBuilderFromConfig ¶
func InitializeGithubBuilderFromConfig(configPath string) (*GithubBuilder, error)
func NewGithubBuilder ¶
func NewGithubBuilder() *GithubBuilder
func (*GithubBuilder) Build ¶
func (g *GithubBuilder) Build() (*Forum, error)
Click to show internal directories.
Click to hide internal directories.