Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver interface {
CreateIssue(ctx context.Context, owner, repo, title, body string, labels ...string) (*forge.Issue, error)
AddIssueLabels(ctx context.Context, owner, repo string, number int, labels ...string) error
AddComment(ctx context.Context, owner, repo string, number int, body string) (*forge.IssueComment, error)
GetIssue(ctx context.Context, owner, repo string, number int) (*forge.Issue, error)
CommitFile(ctx context.Context, owner, repo, path, message string, content []byte) error
CloseIssue(ctx context.Context, owner, repo string, number int) error
}
Driver abstracts SCM operations for behaviour tests.
Click to show internal directories.
Click to hide internal directories.