Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
type ClientInterface interface { CreateIssueComment(owner, repo string, index int64, opt gitea.CreateIssueCommentOption) (*gitea.Comment, *gitea.Response, error) CreateStatus(owner, repo, sha string, opts gitea.CreateStatusOption) (*gitea.Status, *gitea.Response, error) GetPullRequest(owner, repo string, index int64) (*gitea.PullRequest, *gitea.Response, error) }
type GiteaSdk ¶
type GiteaSdk struct {
// contains filtered or unexported fields
}
func New ¶
func New[T ClientInterface](configuration *settings.GiteaConfig, newClient func(url string, options ...gitea.ClientOption) (T, error)) *GiteaSdk
func (*GiteaSdk) DetermineHEAD ¶
func (*GiteaSdk) PostComment ¶
func (*GiteaSdk) UpdateStatus ¶
type GiteaSdkInterface ¶
type GiteaSdkInterface interface { PostComment(settings.GiteaRepository, int, string) error UpdateStatus(settings.Project, string, StatusDetails) error DetermineHEAD(settings.GiteaRepository, int64) (string, error) }
type State ¶
type State gitea.StatusState
const ( StatusOK State = State(gitea.StatusSuccess) StatusPending State = State(gitea.StatusPending) StatusFailure State = State(gitea.StatusFailure) )
type StatusDetails ¶
Click to show internal directories.
Click to hide internal directories.