Documentation ¶
Index ¶
- Constants
- func NewDefaultHookProvider() hookCommon.Provider
- func NewHookProvider(timeProvider hookCommon.TimeProvider) hookCommon.Provider
- type BranchInfoModel
- type CommentInfoModel
- type CommitModel
- type HookProvider
- type IssueCommentEventModel
- type IssueInfoModel
- type IssuePullRequestInfoModel
- type LabelInfoModel
- type PullRequestChangeFromItemModel
- type PullRequestChangesInfoModel
- type PullRequestEventModel
- type PullRequestInfoModel
- type PushEventModel
- type PusherModel
- type RepoInfoModel
- type UserModel
Constants ¶
View Source
const (
// ProviderID ...
ProviderID = "github"
)
Variables ¶
This section is empty.
Functions ¶
func NewDefaultHookProvider ¶
func NewDefaultHookProvider() hookCommon.Provider
NewDefaultHookProvider ...
func NewHookProvider ¶
func NewHookProvider(timeProvider hookCommon.TimeProvider) hookCommon.Provider
NewHookProvider ...
Types ¶
type BranchInfoModel ¶
type BranchInfoModel struct { Ref string `json:"ref"` CommitHash string `json:"sha"` Repo RepoInfoModel `json:"repo"` }
BranchInfoModel ...
type CommentInfoModel ¶
CommentInfoModel ...
type CommitModel ¶
type CommitModel struct { bitriseapi.CommitPaths Distinct bool `json:"distinct"` CommitHash string `json:"id"` CommitMessage string `json:"message"` }
CommitModel ...
type HookProvider ¶
type HookProvider struct {
// contains filtered or unexported fields
}
HookProvider ...
func (HookProvider) GatherMetrics ¶
GatherMetrics ...
func (HookProvider) TransformRequest ¶
func (hp HookProvider) TransformRequest(r *http.Request) hookCommon.TransformResultModel
TransformRequest ...
type IssueCommentEventModel ¶
type IssueCommentEventModel struct { Action string `json:"action"` Issue IssueInfoModel `json:"issue"` Comment CommentInfoModel `json:"comment"` Repo RepoInfoModel `json:"repository"` Sender UserModel `json:"sender"` }
IssueCommentEventModel ...
type IssueInfoModel ¶
type IssueInfoModel struct { ID int64 `json:"id"` PullRequestID int `json:"number"` Title string `json:"title"` Body string `json:"body"` Draft bool `json:"draft"` User UserModel `json:"user"` Labels []LabelInfoModel `json:"labels"` State string `json:"state"` URL string `json:"url"` PullRequest *IssuePullRequestInfoModel `json:"pull_request"` }
IssueInfoModel ...
type IssuePullRequestInfoModel ¶
type IssuePullRequestInfoModel struct { URL string `json:"url"` DiffURL string `json:"diff_url"` MergedAt string `json:"merged_at"` }
IssuePullRequestInfoModel ...
type LabelInfoModel ¶
LabelInfoModel ...
type PullRequestChangeFromItemModel ¶
type PullRequestChangeFromItemModel struct {
From string `json:"from"`
}
PullRequestChangeFromItemModel ...
type PullRequestChangesInfoModel ¶
type PullRequestChangesInfoModel struct { Title PullRequestChangeFromItemModel `json:"title"` Body PullRequestChangeFromItemModel `json:"body"` Base interface{} `json:"base"` }
PullRequestChangesInfoModel ...
type PullRequestEventModel ¶
type PullRequestEventModel struct { Action string `json:"action"` PullRequestID int `json:"number"` PullRequestInfo PullRequestInfoModel `json:"pull_request"` Changes PullRequestChangesInfoModel `json:"changes"` Label *LabelInfoModel `json:"label"` Sender UserModel `json:"sender"` }
PullRequestEventModel ...
type PullRequestInfoModel ¶
type PullRequestInfoModel struct { // source branch for the pull request HeadBranchInfo BranchInfoModel `json:"head"` // destination branch for the pull request BaseBranchInfo BranchInfoModel `json:"base"` Title string `json:"title"` Body string `json:"body"` Merged bool `json:"merged"` Mergeable *bool `json:"mergeable"` Draft bool `json:"draft"` DiffURL string `json:"diff_url"` User UserModel `json:"user"` Labels []LabelInfoModel `json:"labels"` }
PullRequestInfoModel ...
type PushEventModel ¶
type PushEventModel struct { Ref string `json:"ref"` Deleted bool `json:"deleted"` HeadCommit CommitModel `json:"head_commit"` Commits []CommitModel `json:"commits"` Repo RepoInfoModel `json:"repository"` Pusher PusherModel `json:"pusher"` }
PushEventModel ...
Click to show internal directories.
Click to hide internal directories.