Documentation
¶
Index ¶
- type ActivityComment
- type CloneLink
- type Commit
- type Links
- type MergeResult
- type PermittedOperations
- type Project
- type Properties
- type PullRequest
- type PullRequestEvent
- type PullRequestRef
- type PushRequestEvent
- type PushRequestEventChange
- type Ref
- type Repository
- type SelfLink
- type ToCommit
- type User
- type UserWithLinks
- type UserWithMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityComment ¶
type ActivityComment struct {
Properties Properties `json:"properties"`
ID int `json:"id"`
Version int `json:"version"`
Text string `json:"text"`
Author User `json:"author"`
CreatedDate int64 `json:"createdDate"`
UpdatedDate int64 `json:"updatedDate"`
Comments []ActivityComment `json:"comments"`
PermittedOperations PermittedOperations `json:"permittedOperations"`
}
type Commit ¶
type Commit struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
Author User `json:"author"`
AuthorTimestamp int64 `json:"authorTimestamp"`
Committer User `json:"committer"`
CommitterTimestamp int64 `json:"committerTimestamp"`
Message string `json:"message"`
Parents []struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
} `json:"parents"`
}
type MergeResult ¶
type PermittedOperations ¶
type Properties ¶
type Properties struct {
RepositoryID int `json:"repositoryId"`
}
type PullRequest ¶
type PullRequest struct {
ID int `json:"id"`
Version int32 `json:"version"`
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"`
Open bool `json:"open"`
Closed bool `json:"closed"`
CreatedDate int64 `json:"createdDate"`
UpdatedDate int64 `json:"updatedDate"`
FromRef PullRequestRef `json:"fromRef"`
ToRef PullRequestRef `json:"toRef"`
Locked bool `json:"locked"`
Author *UserWithMetadata `json:"author,omitempty"`
Reviewers []UserWithMetadata `json:"reviewers"`
Participants []UserWithMetadata `json:"participants,omitempty"`
Properties struct {
MergeResult MergeResult `json:"mergeResult"`
ResolvedTaskCount int `json:"resolvedTaskCount"`
OpenTaskCount int `json:"openTaskCount"`
} `json:"properties"`
Links Links `json:"links"`
}
type PullRequestEvent ¶
type PullRequestEvent struct {
Actor UserWithLinks `json:"actor"`
PullRequest PullRequest `json:"pullRequest"`
EventKey string `json:"eventKey"`
// Comment should be used when event is `pr:comment:added` or `pr:comment:edited`.
Comment ActivityComment `json:"comment"`
// CommentParentID and PreviousComment should be used when event is `pr:comment:edited`.
CommentParentID string `json:"commentParentId"`
PreviousComment string `json:"previousComment"`
}
type PullRequestRef ¶
type PullRequestRef struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
LatestCommit string `json:"latestCommit"`
Repository Repository `json:"repository"`
}
type PushRequestEvent ¶
type PushRequestEvent struct {
EventKey string `json:"eventKey"`
Actor UserWithLinks `json:"actor"`
Repository Repository `json:"repository"`
Changes []PushRequestEventChange `json:"changes"`
Commits []Commit `json:"commits"`
ToCommit ToCommit `json:"toCommit"`
}
type PushRequestEventChange ¶
type Repository ¶
type Repository struct {
Slug string `json:"slug,omitempty"`
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ScmID string `json:"scmId,omitempty"`
State string `json:"state,omitempty"`
StatusMessage string `json:"statusMessage,omitempty"`
Forkable bool `json:"forkable,omitempty"`
Project *Project `json:"project,omitempty"`
Public bool `json:"public,omitempty"`
Links *struct {
Clone []CloneLink `json:"clone,omitempty"`
Self []SelfLink `json:"self,omitempty"`
} `json:"links,omitempty"`
Owner *struct {
Name string `json:"name"`
EmailAddress string `json:"emailAddress"`
ID int `json:"id"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
Slug string `json:"slug"`
Type string `json:"type"`
AvatarURL string `json:"avatarUrl"`
} `json:"owner,omitempty"`
Origin *Repository `json:"origin,omitempty"`
}
type User ¶
type User struct {
Name string `json:"name"`
EmailAddress string `json:"emailAddress"`
ID int `json:"id"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
Slug string `json:"slug"`
Type string `json:"type"`
DirectoryName string `json:"directoryName"`
Deletable bool `json:"deletable"`
LastAuthenticationTimestamp int64 `json:"lastAuthenticationTimestamp"`
MutableDetails bool `json:"mutableDetails"`
MutableGroups bool `json:"mutableGroups"`
}
type UserWithLinks ¶
type UserWithLinks struct {
Name string `json:"name,omitempty"`
EmailAddress string `json:"emailAddress,omitempty"`
ID int `json:"id,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Active bool `json:"active,omitempty"`
Slug string `json:"slug,omitempty"`
Type string `json:"type,omitempty"`
Links Links `json:"links,omitempty"`
}
type UserWithMetadata ¶
type UserWithMetadata struct {
User UserWithLinks `json:"user,omitempty"`
Role string `json:"role,omitempty"`
Approved bool `json:"approved,omitempty"`
Status string `json:"status,omitempty"`
LastReviewedCommit string `json:"lastReviewedCommit,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.