Documentation
¶
Index ¶
- Constants
- func CreateGithubClients(ctx context.Context, tok string) (*github.Client, *githubv4.Client)
- func NewAPI(v3 *github.Client, v4 *githubv4.Client, metrics metrics.Emitter) gh.API
- type SimpleDao
- func (s *SimpleDao) AddReview(ctx context.Context, id id.PR, summary, event string) error
- func (s *SimpleDao) EnableAutoMerge(ctx context.Context, id id.PR, method githubv4.PullRequestMergeMethod) error
- func (s *SimpleDao) GetBranchProtection(ctx context.Context, id id.PR, branch string) (*github.Protection, error)
- func (s *SimpleDao) IssueComment(ctx context.Context, id id.PR, comment string) error
- func (s *SimpleDao) IssueCommentForError(ctx context.Context, id id.PR, err errors.APIError) error
- func (s *SimpleDao) ListAllTopics(ctx context.Context, id id.PR) ([]string, error)
- func (s *SimpleDao) ListFilesChangedInPR(ctx context.Context, id id.PR) ([]*github.CommitFile, error)
- func (s *SimpleDao) ListFilesInRootDir(ctx context.Context, id id.PR, branch string) ([]string, error)
- func (s *SimpleDao) ListRequiredStatusChecks(ctx context.Context, id id.PR, branch string) ([]string, error)
- func (s *SimpleDao) ListReviews(ctx context.Context, id id.PR) ([]*github.PullRequestReview, error)
Constants ¶
View Source
const (
ApprovalTemplate = `
<details>
<summary>
%v
<br/>
</summary>
~~~json
%v
~~~
</details>
`
)
Variables ¶
This section is empty.
Functions ¶
func CreateGithubClients ¶
Types ¶
type SimpleDao ¶
type SimpleDao struct {
// contains filtered or unexported fields
}
func (*SimpleDao) EnableAutoMerge ¶
func (*SimpleDao) GetBranchProtection ¶
func (*SimpleDao) IssueComment ¶
func (*SimpleDao) IssueCommentForError ¶
func (*SimpleDao) ListAllTopics ¶
func (*SimpleDao) ListFilesChangedInPR ¶
func (*SimpleDao) ListFilesInRootDir ¶
func (*SimpleDao) ListRequiredStatusChecks ¶
func (*SimpleDao) ListReviews ¶
Click to show internal directories.
Click to hide internal directories.