Create a new project branch
Create a new branch for a project.
The branch inherits the config files from the revision pointed to by the
branch_from parameter. In addition, if the revision is a branch name,
the branch will also inherit custom code changes from that branch.
ParametersExpand Collapse
params ProjectBranchNewParams
Project param.Field[string]optional
Path param:
Branch param.Field[string]
Body param: Branch name
BranchFrom param.Field[string]
Body param: Branch or commit SHA to branch from
Force param.Field[bool]optional
Body param: Whether to throw an error if the branch already exists. Defaults to false.
ReturnsExpand Collapse
type ProjectBranch struct{…}
A project branch names a line of development for a project. Like a Git branch, it points to a Git commit with a set of config files. In addition, a project branch also points to a set of custom code changes, corresponding to Git branches in the staging repos.
Branch string
Branch name
ConfigCommit ProjectBranchConfigCommit
A Git commit that points to the latest set of config files on a given branch.
Repo ProjectBranchConfigCommitRepo
LatestBuild Build
ID string
Build ID
DocumentedSpec BuildDocumentedSpecUnion
type BuildDocumentedSpecObject struct{…}
type BuildDocumentedSpecObject struct{…}
Targets BuildTargets
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Commit BuildTargetCommitUnion
type BuildTargetCommitNotStarted struct{…}
type BuildTargetCommitQueued struct{…}
type BuildTargetCommitInProgress struct{…}
type BuildTargetCommitCompleted struct{…}
Commit Commit
Repo CommitRepo
Completed BuildTargetCommitCompletedCompleted
deprecated
Commit Commit
Repo CommitRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedCompletedMergeConflictPr
Repo BuildTargetCommitCompletedCompletedMergeConflictPrRepo
Conclusion CommitConclusion
MergeConflictPr BuildTargetCommitCompletedMergeConflictPr
Repo BuildTargetCommitCompletedMergeConflictPrRepo
Lint CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Status BuildTargetStatus
Test CheckStepUnion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
type CheckStepNotStarted struct{…}
type CheckStepQueued struct{…}
type CheckStepInProgress struct{…}
type CheckStepCompleted struct{…}
Completed CheckStepCompletedCompleted
deprecated
Conclusion CheckStepConclusion
Conclusion CheckStepConclusion
Project string
Project name
Create a new project branch
package main
import (
"context"
"fmt"
"github.com/stainless-api/stainless-api-go"
"github.com/stainless-api/stainless-api-go/option"
)
func main() {
client := stainless.NewClient(
option.WithAPIKey("My API Key"),
)
projectBranch, err := client.Projects.Branches.New(context.TODO(), stainless.ProjectBranchNewParams{
Project: stainless.String("project"),
Branch: "branch",
BranchFrom: "branch_from",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", projectBranch.Branch)
}
{
"branch": "branch",
"config_commit": {
"repo": {
"branch": "branch",
"name": "name",
"owner": "owner"
},
"sha": "sha"
},
"latest_build": {
"id": "id",
"config_commit": "config_commit",
"created_at": "2019-12-27T18:11:19.117Z",
"documented_spec": {
"content": "content",
"type": "content"
},
"object": "build",
"org": "org",
"project": "project",
"targets": {
"cli": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"csharp": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"go": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"java": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"kotlin": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"node": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"openapi": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"php": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"python": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"ruby": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"terraform": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"typescript": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"object": "project_branch",
"org": "org",
"project": "project"
}
Returns Examples
{
"branch": "branch",
"config_commit": {
"repo": {
"branch": "branch",
"name": "name",
"owner": "owner"
},
"sha": "sha"
},
"latest_build": {
"id": "id",
"config_commit": "config_commit",
"created_at": "2019-12-27T18:11:19.117Z",
"documented_spec": {
"content": "content",
"type": "content"
},
"object": "build",
"org": "org",
"project": "project",
"targets": {
"cli": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"csharp": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"go": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"java": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"kotlin": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"node": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"openapi": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"php": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"python": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"ruby": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"terraform": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
},
"typescript": {
"commit": {
"status": "not_started"
},
"install_url": "install_url",
"lint": {
"status": "not_started"
},
"object": "build_target",
"status": "not_started",
"test": {
"status": "not_started"
},
"build": {
"status": "not_started"
}
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"object": "project_branch",
"org": "org",
"project": "project"
}