Documentation ¶
Index ¶
- type Approvals
- type BranchRule
- type Bypass
- type CodeComment
- type Comments
- type Definition
- type Hunk
- type LabelResponse
- type Lifecycle
- type ListOptions
- type Merge
- type Org
- type PRComment
- type PRResponse
- type Pattern
- type Pipeline
- type Project
- type PullReq
- type PullRequestData
- type PullRequestListOptions
- type RepoData
- type RepoResponse
- type Secret
- type User
- type WebhookData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Approvals ¶ added in v0.22.0
type Approvals struct { RequireCodeOwners bool RequireMinimumCount int RequireLatestCommit bool RequireNoChangeRequest bool }
Org defines an organization.
type BranchRule ¶ added in v0.22.0
type BranchRule struct { ID int Name string State enum.RuleState Definition Pattern Created time.Time Updated time.Time }
Org defines an organization.
type CodeComment ¶ added in v0.22.0
type CodeComment struct { Path string CodeSnippet Hunk Side string HunkHeader string SourceSHA string MergeBaseSHA string Outdated bool }
Org defines an organization.
type Comments ¶ added in v0.22.0
type Comments struct {
RequireResolveAll bool
}
Org defines an organization.
type Definition ¶ added in v0.22.0
Org defines an organization.
type LabelResponse ¶ added in v0.24.0
Org defines an organization.
type Lifecycle ¶ added in v0.22.0
type Lifecycle struct { CreateForbidden bool DeleteForbidden bool UpdateForbidden bool UpdateForceForbidden bool }
Org defines an organization.
type ListOptions ¶ added in v0.22.0
Org defines an organization.
type Org ¶
type Org struct { Name string `json:"name"` Projects []*Project `json:"project,omitempty"` Secrets []*Secret `json:"secrets,omitempty"` }
Org defines an organization.
type PRComment ¶ added in v0.22.0
type PRComment struct { scm.Comment ParentID int CodeComment *CodeComment }
Org defines an organization.
type PRResponse ¶ added in v0.22.0
type PRResponse struct {
scm.PullRequest
}
Org defines an organization.
type Pipeline ¶
type Pipeline struct { Name string `json:"name"` Repo string `json:"repo,omitempty"` Branch string `json:"branch,omitempty"` Type string `json:"type"` // github, gitlab, bitbucket Yaml string `json:"yaml"` }
Pipeline defines a pipeline.
type Project ¶
type Project struct { Name string `json:"name"` Desc string `json:"desc,omitempty"` Repo string `json:"repo,omitempty"` Branch string `json:"branch,omitempty"` Type string `json:"type"` // github, gitlab, bitbucket Yaml []byte `json:"yaml"` Secrets []*Secret `json:"secrets,omitempty"` Pipelines []*Pipeline `json:"pipelines,omitempty"` }
Project defines a project.
type PullRequestData ¶ added in v0.22.0
type PullRequestData struct { PullRequest PRResponse Comments []*PRComment }
Org defines an organization.
type PullRequestListOptions ¶ added in v0.22.0
Org defines an organization.
type RepoData ¶ added in v0.22.0
type RepoData struct { Repository RepoResponse PullRequestData []*PullRequestData Webhooks WebhookData BranchRules []*BranchRule Labels map[string]types.Label }
Org defines an organization.
type RepoResponse ¶ added in v0.22.0
type RepoResponse struct { scm.Repository RepoSlug string IsEmpty bool }
Org defines an organization.
type Secret ¶
type Secret struct { Name string `json:"name"` Desc string `json:"desc,omitempty"` Value string `json:"value,omitempty"` }
Secret defines a secret.
type WebhookData ¶ added in v0.22.0
Org defines an organization.
Click to show internal directories.
Click to hide internal directories.