Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProviderID ... ProviderID = "visualstudio" // Push event name Push string = "git.push" // PullRequestCreate event name PullRequestCreate = "git.pullrequest.created" // PullRequestUpdate event name PullRequestUpdate = "git.pullrequest.updated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorModel ¶
type AuthorModel struct {
DisplayName string `json:"displayName"`
}
AuthorModel ...
type CommitModel ¶
CommitModel ...
type EventModel ¶
type EventModel struct { SubscriptionID string `json:"subscriptionId"` EventType string `json:"eventType"` PublisherID string `json:"publisherId"` }
EventModel ...
type HookProvider ¶
type HookProvider struct{}
HookProvider ...
func (HookProvider) TransformRequest ¶
func (hp HookProvider) TransformRequest(r *http.Request) hookCommon.TransformResultModel
TransformRequest ...
type PullRequestEventModel ¶
type PullRequestEventModel struct { SubscriptionID string `json:"subscriptionId"` EventType string `json:"eventType"` PublisherID string `json:"publisherId"` Resource PullRequestResourceModel `json:"resource"` ResourceVersion string `json:"resourceVersion"` DetailedMessage EventMessage `json:"detailedMessage"` Message EventMessage `json:"message"` }
PullRequestEventModel ...
type PullRequestResourceModel ¶
type PullRequestResourceModel struct { SourceReferenceName string `json:"sourceRefName"` TargetReferenceName string `json:"targetRefName"` MergeStatus string `json:"mergeStatus"` LastSourceCommit CommitModel `json:"lastMergeSourceCommit"` CreatedBy AuthorModel `json:"createdBy"` Status string `json:"status"` PullRequestID int `json:"pullRequestId"` }
PullRequestResourceModel ...
type PushEventModel ¶
type PushEventModel struct { SubscriptionID string `json:"subscriptionId"` EventType string `json:"eventType"` PublisherID string `json:"publisherId"` Resource PushResourceModel `json:"resource"` ResourceVersion string `json:"resourceVersion"` DetailedMessage EventMessage `json:"detailedMessage"` Message EventMessage `json:"message"` }
PushEventModel ...
type PushResourceModel ¶
type PushResourceModel struct { Commits []CommitModel `json:"commits"` RefUpdates []RefUpdatesModel `json:"refUpdates"` }
PushResourceModel ...
type RefUpdatesModel ¶
type RefUpdatesModel struct { Name string `json:"name"` OldObjectID string `json:"oldObjectId"` NewObjectID string `json:"newObjectId"` }
RefUpdatesModel ...
Click to show internal directories.
Click to hide internal directories.