types

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 Bypass added in v0.22.0

type Bypass struct {
	UserEmails []string
	RepoOwners bool
}

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

type Definition struct {
	Bypass
	PullReq
	Lifecycle
}

Org defines an organization.

type Hunk added in v0.22.0

type Hunk struct {
	Header string
	Lines  []string
}

Org defines an organization.

type LabelResponse added in v0.24.0

type LabelResponse struct {
	Name        string
	Color       string
	Description string
}

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

type ListOptions struct {
	URL  string
	Page int
	Size int
}

Org defines an organization.

type Merge added in v0.22.0

type Merge struct {
	StrategiesAllowed []string
	DeleteBranch      bool
	Block             bool
}

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 Pattern added in v0.22.0

type Pattern struct {
	IncludeDefault   bool
	IncludedPatterns []string
	ExcludedPatterns []string
}

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 PullReq added in v0.22.0

type PullReq struct {
	Approvals
	Comments
	Merge
}

Org defines an organization.

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

type PullRequestListOptions struct {
	Page   int
	Size   int
	Open   bool
	Closed bool
}

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 User added in v0.22.0

type User struct {
	ID    int    `json:"id"`
	Email string `json:"email"`
}

Org defines an organization.

type WebhookData added in v0.22.0

type WebhookData struct {
	ConvertedHooks []*scm.Hook
}

Org defines an organization.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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