Documentation
¶
Index ¶
- type GithubService
- func (s *GithubService) AttachLabel(ctx context.Context, pullRequest *entity.PullRequest) error
- func (s *GithubService) ClosePullRequest(ctx context.Context, pullRequest *entity.PullRequest) error
- func (s *GithubService) WriteMessage(ctx context.Context, pullRequest *entity.PullRequest) error
- func (s *GithubService) WriteReport(ctx context.Context, pullRequest *entity.PullRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubService ¶
type GithubService struct {
// contains filtered or unexported fields
}
GithubService is a service that simplifies GitHub API interaction
func NewGithubService ¶
func NewGithubService( client internal.GithubClient, config *entity.Configuration, meta *entity.Meta, ) *GithubService
NewGithubService creates a new GitHub service that simplify API interaction with functions which is actually needed
func (*GithubService) AttachLabel ¶
func (s *GithubService) AttachLabel( ctx context.Context, pullRequest *entity.PullRequest, ) error
AttachLabel attachs label to invalid pull request
func (*GithubService) ClosePullRequest ¶
func (s *GithubService) ClosePullRequest( ctx context.Context, pullRequest *entity.PullRequest, ) error
ClosePullRequest closes invalid pull request
func (*GithubService) WriteMessage ¶ added in v0.12.0
func (s *GithubService) WriteMessage( ctx context.Context, pullRequest *entity.PullRequest, ) error
WriteMessage creates a new comment that contains user-desired message
func (*GithubService) WriteReport ¶
func (s *GithubService) WriteReport( ctx context.Context, pullRequest *entity.PullRequest, results *entity.PullRequestResult, time time.Time, ) error
WriteReport creates a new comment that contains conventional-pr workflow report in markdown format
Click to show internal directories.
Click to hide internal directories.