Versions in this module Expand all Collapse all v0 v0.4.1 Apr 17, 2026 v0.3.4 May 1, 2026 v0.3.3 Apr 17, 2026 v0.3.2 Apr 16, 2026 v0.3.1 Apr 6, 2026 v0.3.0 Apr 6, 2026 v0.2.0 Apr 5, 2026 v0.1.9 Apr 5, 2026 v0.1.8 Apr 5, 2026 v0.1.7 Apr 5, 2026 v0.1.6 Apr 5, 2026 v0.1.5 Apr 5, 2026 v0.1.3 Apr 4, 2026 v0.1.2 Apr 4, 2026 v0.1.1 Apr 4, 2026 v0.1.0 Apr 4, 2026 Changes in this version + type Activity struct + Approval *Approval + Comment *Comment + Update *PRUpdate + type Actor struct + DisplayName string + type AddCommentInput struct + Content Content + Inline *Inline + Parent *Parent + type AddDeployKeyInput struct + Key string + Label string + type Approval struct + Date string + User Actor + type Branch struct + Links Links + Name string + Target BranchTarget + type BranchResource struct + func (r *BranchResource) Create(ctx context.Context, name, target string) (Branch, error) + func (r *BranchResource) Delete(ctx context.Context, name string) error + func (r *BranchResource) List(ctx context.Context) ([]Branch, error) + type BranchRestriction struct + BranchMatchKind string + ID int + Kind string + Links Links + Pattern string + Value *int + type BranchRestrictionResource struct + func (r *BranchRestrictionResource) Create(ctx context.Context, input CreateBranchRestrictionInput) (BranchRestriction, error) + func (r *BranchRestrictionResource) Delete(ctx context.Context, id int) error + func (r *BranchRestrictionResource) List(ctx context.Context) ([]BranchRestriction, error) + type BranchTarget struct + Hash string + type Client struct + func New(cfg *config.Config) *Client + func NewWithBaseURL(cfg *config.Config, baseURL string) *Client + func (c *Client) Branches(workspace, repo string) *BranchResource + func (c *Client) Comments(workspace, repo string, prID int) *CommentResource + func (c *Client) Commits(workspace, repo string) *CommitResource + func (c *Client) DeployKeys(workspace, repo string) *DeployKeyResource + func (c *Client) Deployments(workspace, repo string) *DeploymentResource + func (c *Client) Downloads(workspace, repo string) *DownloadResource + func (c *Client) Environments(workspace, repo string) *EnvironmentResource + func (c *Client) Issues(workspace, repo string) *IssueResource + func (c *Client) Members(workspace string) *MemberResource + func (c *Client) PRs(workspace, repo string) *PRResource + func (c *Client) Pipelines(workspace, repo string) *PipelineResource + func (c *Client) Repos(workspace string) *RepoResource + func (c *Client) Restrictions(workspace, repo string) *BranchRestrictionResource + func (c *Client) Tags(workspace, repo string) *TagResource + func (c *Client) Tasks(workspace, repo string, prID int) *TaskResource + func (c *Client) User() *UserResource + func (c *Client) Webhooks(workspace, repo string) *WebhookResource + type Comment struct + Content Content + ID int + Inline *Inline + Parent *Parent + User Actor + type CommentResource struct + func (r *CommentResource) Add(ctx context.Context, input AddCommentInput) (Comment, error) + func (r *CommentResource) List(ctx context.Context) ([]Comment, error) + func (r *CommentResource) Reply(ctx context.Context, parentID int, text string) (Comment, error) + type Commit struct + Author CommitAuthor + Date string + Hash string + Message string + Parents []CommitParent + type CommitAuthor struct + Raw string + User *Actor + type CommitParent struct + Hash string + type CommitResource struct + func (r *CommitResource) File(ctx context.Context, ref, filePath string) (string, error) + func (r *CommitResource) Get(ctx context.Context, hash string) (Commit, error) + func (r *CommitResource) List(ctx context.Context, branch string) ([]Commit, error) + type Content struct + Raw string + type CreateBranchInput struct + Name string + Target BranchTarget + type CreateBranchRestrictionInput struct + BranchMatchKind string + Kind string + Pattern string + Value *int + type CreateIssueInput struct + Content *Content + Kind string + Priority string + Title string + type CreatePRInput struct + CloseSourceBranch bool + Description string + Destination Endpoint + Source Endpoint + Title string + type CreateTagInput struct + Name string + Target BranchTarget + type CreateWebhookInput struct + Active bool + Description string + Events []string + URL string + type DeployKey struct + CreatedOn string + ID int + Key string + Label string + Links Links + type DeployKeyResource struct + func (r *DeployKeyResource) Add(ctx context.Context, label, key string) (DeployKey, error) + func (r *DeployKeyResource) Delete(ctx context.Context, id int) error + func (r *DeployKeyResource) List(ctx context.Context) ([]DeployKey, error) + type Deployable struct + Commit *DeployableCommit + Pipeline *DeployablePipeline + type DeployableCommit struct + Hash string + type DeployablePipeline struct + UUID string + type Deployment struct + Deployable Deployable + Environment DeploymentEnvRef + LastUpdateTime string + State DeploymentState + UUID string + type DeploymentEnvRef struct + UUID string + type DeploymentResource struct + func (r *DeploymentResource) List(ctx context.Context) ([]Deployment, error) + type DeploymentState struct + Name string + Status *DeploymentStatus + type DeploymentStatus struct + Name string + type Download struct + Links Links + Name string + Size int64 + type DownloadResource struct + func (r *DownloadResource) Delete(ctx context.Context, filename string) error + func (r *DownloadResource) List(ctx context.Context) ([]Download, error) + func (r *DownloadResource) Upload(ctx context.Context, name string, content io.Reader) error + type Endpoint struct + Branch struct{ ... } + func NewEndpoint(branchName string) Endpoint + type Environment struct + EnvironmentType EnvironmentType + Lock EnvironmentLock + Name string + UUID string + type EnvironmentLock struct + Name string + type EnvironmentResource struct + func (r *EnvironmentResource) List(ctx context.Context) ([]Environment, error) + type EnvironmentType struct + Name string + type Inline struct + Path string + To int + type Issue struct + Assignee *Actor + Content Content + CreatedOn string + ID int + Kind string + Links Links + Priority string + Reporter Actor + State string + Title string + UpdatedOn string + type IssueResource struct + func (r *IssueResource) Create(ctx context.Context, input CreateIssueInput) (Issue, error) + func (r *IssueResource) Get(ctx context.Context, id int) (Issue, error) + func (r *IssueResource) List(ctx context.Context) ([]Issue, error) + type Links struct + HTML struct{ ... } + type MemberResource struct + func (r *MemberResource) List(ctx context.Context) ([]WorkspaceMember, error) + type PR struct + Author Actor + Description string + Destination Endpoint + ID int + Links Links + Source Endpoint + State string + Title string + type PRResource struct + func (r *PRResource) Activity(ctx context.Context, prID int) ([]Activity, error) + func (r *PRResource) Approve(ctx context.Context, prID int) error + func (r *PRResource) Create(ctx context.Context, input CreatePRInput) (PR, error) + func (r *PRResource) Decline(ctx context.Context, prID int) error + func (r *PRResource) Diff(ctx context.Context, prID int) (string, error) + func (r *PRResource) Get(ctx context.Context, prID int) (PR, error) + func (r *PRResource) List(ctx context.Context, state string) ([]PR, error) + func (r *PRResource) Merge(ctx context.Context, prID int, strategy string) error + func (r *PRResource) Statuses(ctx context.Context, prID int) ([]PRStatus, error) + type PRStatus struct + CreatedOn string + Description string + Key string + Name string + State string + URL string + type PRUpdate struct + Author Actor + Date string + State string + type Parent struct + ID int + type Pipeline struct + BuildNumber int + CompletedOn string + CreatedOn string + State PipelineState + Target PipelineTarget + UUID string + type PipelineCommit struct + Hash string + type PipelineResource struct + func (r *PipelineResource) Get(ctx context.Context, pipelineUUID string) (Pipeline, error) + func (r *PipelineResource) List(ctx context.Context) ([]Pipeline, error) + func (r *PipelineResource) Log(ctx context.Context, pipelineUUID, stepUUID string) (string, error) + func (r *PipelineResource) Steps(ctx context.Context, pipelineUUID string) ([]PipelineStep, error) + func (r *PipelineResource) Stop(ctx context.Context, pipelineUUID string) error + func (r *PipelineResource) Trigger(ctx context.Context, branch string) (Pipeline, error) + type PipelineResult struct + Name string + type PipelineState struct + Name string + Result *PipelineResult + type PipelineStep struct + CompletedOn string + Name string + StartedOn string + State PipelineState + UUID string + type PipelineTarget struct + Commit *PipelineCommit + RefName string + RefType string + type Repo struct + Description string + FullName string + IsPrivate bool + Links Links + Name string + Slug string + type RepoResource struct + func (r *RepoResource) List(ctx context.Context) ([]Repo, error) + type Tag struct + Links Links + Name string + Target BranchTarget + type TagResource struct + func (r *TagResource) Create(ctx context.Context, name, target string) (Tag, error) + func (r *TagResource) Delete(ctx context.Context, name string) error + func (r *TagResource) List(ctx context.Context) ([]Tag, error) + type Task struct + Description string + ID int + State string + type TaskResource struct + func (r *TaskResource) List(ctx context.Context) ([]Task, error) + func (r *TaskResource) SetState(ctx context.Context, taskID int, resolved bool) error + type TriggerPipelineInput struct + Target TriggerTarget + type TriggerTarget struct + RefName string + RefType string + Type string + type User struct + AccountID string + DisplayName string + Links Links + Nickname string + type UserResource struct + func (r *UserResource) Me(ctx context.Context) (User, error) + type Webhook struct + Active bool + CreatedAt string + Description string + Events []string + Links Links + URL string + UUID string + type WebhookResource struct + func (r *WebhookResource) Create(ctx context.Context, input CreateWebhookInput) (Webhook, error) + func (r *WebhookResource) Delete(ctx context.Context, uuid string) error + func (r *WebhookResource) List(ctx context.Context) ([]Webhook, error) + type WorkspaceMember struct + Links Links + User User