visualstudioteamservices

package
v0.0.0-...-1e4fe4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 10 Imported by: 0

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

type CommitModel struct {
	CommitID string `json:"commitId"`
	Comment  string `json:"comment"`
}

CommitModel ...

type EventMessage

type EventMessage struct {
	Text string `json:"text"`
}

EventMessage ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL