Documentation
¶
Index ¶
- Variables
- func RegisterWorkflows(w worker.Worker, cmd *cli.Command)
- type Account
- type Bitbucket
- type Branch
- type Comment
- type Commit
- type Inline
- type Link
- type Parent
- type Participant
- type Project
- type PullRequest
- type PullRequestEvent
- type Reference
- type Rendered
- type Repository
- type RepositoryEvent
- type Review
- type Workspace
Constants ¶
This section is empty.
Variables ¶
View Source
var Signals = []string{
"bitbucket.events.pullrequest.created",
"bitbucket.events.pullrequest.updated",
"bitbucket.events.pullrequest.approved",
"bitbucket.events.pullrequest.unapproved",
"bitbucket.events.pullrequest.changes_request_created",
"bitbucket.events.pullrequest.changes_request_removed",
"bitbucket.events.pullrequest.fulfilled",
"bitbucket.events.pullrequest.rejected",
"bitbucket.events.pullrequest.comment_created",
"bitbucket.events.pullrequest.comment_updated",
"bitbucket.events.pullrequest.comment_deleted",
"bitbucket.events.pullrequest.comment_resolved",
"bitbucket.events.pullrequest.comment_reopened",
"bitbucket.events.repo.commit_comment_created",
"bitbucket.events.repo.build_status_created",
"bitbucket.events.repo.build_status_updated",
}
Signals enumerates all the Timpani signals that this package can handle.
Functions ¶
Types ¶
type Comment ¶
type Comment struct {
ID int `json:"id"`
Parent *Parent `json:"parent,omitempty"`
CreatedOn string `json:"created_on"`
UpdatedOn string `json:"updated_on"`
Deleted bool `json:"deleted"`
Pending bool `json:"pending"`
Content Rendered `json:"content"`
Inline *Inline `json:"inline"`
User Account `json:"user"`
Links map[string]Link `json:"links"`
}
type Participant ¶
type PullRequest ¶
type PullRequest struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"` // "OPEN", "MERGED", "DECLINED".
Draft bool `json:"draft"`
Summary Rendered `json:"summary"`
Rendered map[string]Rendered `json:"rendered"`
Source Reference `json:"source"`
Destination Reference `json:"destination"`
CreatedOn string `json:"created_on"`
UpdatedOn string `json:"updated_on"`
CommentCount int `json:"comment_count"`
TaskCount int `json:"task_count"`
Author Account `json:"author"`
Participants []Participant `json:"participants"`
Reviewers []Account `json:"reviewers"`
ClosedBy *Account `json:"closed_by"`
Reason string `json:"reason"`
CloseSourceBranch bool `json:"close_source_branch"`
MergeCommit *Commit `json:"merge_commit"`
Links map[string]Link `json:"links"`
}
type PullRequestEvent ¶
type PullRequestEvent struct {
Type string `json:"type"` // Defined and used internally by us.
PullRequest PullRequest `json:"pullrequest"`
Repository Repository `json:"repository"`
Actor Account `json:"actor"`
Approval *Review `json:"approval,omitempty"`
ChangesRequest *Review `json:"changes_request,omitempty"`
Comment *Comment `json:"comment,omitempty"`
}
https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Pull-request-events https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Common-entities-for-event-payloads
type Reference ¶
type Reference struct {
Branch Branch `json:"branch"`
Commit Commit `json:"commit"`
Repository Repository `json:"repository"`
}
type Repository ¶
type Repository struct {
FullName string `json:"full_name"`
Name string `json:"name"`
UUID string `json:"uuid"`
SCM string `json:"scm"`
IsPrivate bool `json:"is_private"`
Website *string `json:"website"`
Workspace Workspace `json:"workspace"`
Project Project `json:"project"`
Owner Account `json:"owner"`
Links map[string]Link `json:"links"`
}
type RepositoryEvent ¶
type RepositoryEvent struct {
Type string `json:"type"` // Defined and used internally by us.
Repository Repository `json:"repository"`
Actor Account `json:"actor"`
Commit *Commit `json:"commit,omitempty"`
Comment *Comment `json:"comment,omitempty"`
}
https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Repository-events
Click to show internal directories.
Click to hide internal directories.