Xcode Cloud webhook payload reference
Review details of the webhook payload that Xcode Cloud sends, including the product, workflow, build, actions, results, and SCM metadata associated with it.
Webhook
idA string that uniquely identifies the webhook, such as
12345678-abcd-1234-5678-a12345bc4567.nameThe name of the webhook, such as
Team Dashboard.urlThe URL of the app or service that receives and handles the webhook.
WebhookMetadata
typeA constant value of
metadata, indicating that this section of the payload contains metadata about the webhook.createdDateThe creation date of the webhook event.
eventTypeThe type of event associated with the webhook, which can be
BUILD_CREATED,BUILD_STARTED,BUILD_COMPLETED, orUNRECOGNIZED.
App
idA string that uniquely identifies the app associated with the webhook, such as
12345678-abcd-1234-5678-a12345bc4567.typeA constant value of
apps, indicating that this section of the payload contains app information for the event.
CIWorkflow
idA string that uniquely identifies the workflow associated with the webhook, such as
12345678-abcd-1234-5678-a12345bc4567.typeA constant value of
ciWorkflows, indicating that this data structure represents a workflow.nameThe name of the workflow associated with the webhook.
descriptionThe description of the workflow in the workflow editor.
lastModifiedDateThe date of the workflow’s most recent modification.
isEnabledA Boolean value that indicates whether the workflow is currently in an enabled state.
isLockedForEditingA Boolean value that indicates whether the workflow is locked for editing, preventing any modifications.
CIProduct
idA string that uniquely identifies the product associated with the webhook, such as
12345678-abcd-1234-5678-a12345bc4567.typeA constant value of
ciProducts, indicating that this data structure represents a product.nameThe name of the product associated with the webhook.
createdDateThe creation date of the product.
productTypeThe type of product associated with the webhook, such as
APPorFRAMEWORK.
CIBuilds
idA string that uniquely identifies the build associated with the webhook, such as
12345678-abcd-1234-5678-a12345bc4567.typeA constant value of
ciBuildRuns, indicating that this data structure represents a build.numberThe number of the current build, such as
42.createdDateThe creation date or scheduled date of the build.
startedDateThe start date of the build execution.
finishedDateThe finish date of the build execution.
sourceCommit - The git commit and SCM details for the build.
commitShaThe unique SHA-1 hash of the source commit.
authorThe display name of the source commit author.
committerThe display name of the person who commits the change.
htmlUrlThe URL that links to the change on the SCM provider’s website.
destinationCommit - Optional commit details of the target commit associated with the build.
commitShaThe unique SHA-1 hash of the destination commit.
authorThe display name of the destination commit author.
committerThe display name of the person who commits the change.
htmlUrlThe URL that links to the change on the SCM provider’s website.
isPullRequestBuildA Boolean value that indicates whether a pull request triggered the build.
executionProgressThe current progress of the build, which can be
PENDING,RUNNING, orCOMPLETE.completionStatusThe completion status of the build, which can be
SUCCEEDED,FAILED,ERRORED,CANCELED, orSKIPPED.
CIBuildActions
Information and metadata for each build action that runs as part of the build.
idA string that uniquely identifies the build action list.
typeA constant value of
ciBuildActions, indicating that this data structure represents a build action.nameThe name of the build action.
actionTypeThe type of build action, which can be
BUILD,ANALYZE,TEST, orARCHIVE.startedDateThe start date of the build action execution.
finishedDateThe finish date of the build action execution.
issueCounts
analyzerWarningsAn integer value representing the number of analyzer warnings associated with the build.
errorsAn integer value representing the number of errors associated with the build.
testFailuresAn integer value representing the number of test failures associated with the build.
warningsAn integer value representing the number of warnings associated with the build.
relationshipsThe build relationship details, including the platform type. Possible platform types are
IOS,MAC_OS, orTV_OS.
builds
idThe unique identifier of the build associated with the build action.
typeA constant value of
builds, indicating that this data structure represents a build.platformThe platform type associated with the build, such as
IOS,MAC_OS, orTV_OS.
ScmProvider
typeA constant value of
scmProviders, indicating that this data structure represents an SCM provider.
scmProviderType
scmProviderTypeA string value representing the type of the SCM provider, such as
GitHuborBitbucket.displayNameA string representation of the
ScmProviderType, such asGitHuborBitbucket.isOnPremiseA Boolean value that indicates whether the SCM provider is self-hosted.
endpointThe URL of the repository on the SCM provider’s website.
ScmRepository
idA string that uniquely identifies the SCM repository.
typeA constant value of
scmRepositories, indicating that this data structure represents an SCM repository.httpCloneUrlThe HTTP clone URL of the repository.
sshCloneUrlThe optional SSH clone URL of the repository.
ownerNameThe name of the person or organization that owns the repository.
repositoryNameThe name of the repository associated with the build.
ScmPullRequest
idA string that uniquely identifies the pull request.
typeA constant value of
scmPullRequests, indicating that this data structure represents an SCM pull request.titleThe title of the pull request.
numberThe number of the current pull request, such as
123.htmlUrlThe HTML URL of the pull request, such as
https://example.com/example/example-app/pull/123.sourceRepositoryOwnerThe owner of the source repository.
sourceRepositoryNameThe name of the source repository.
sourceBranchNameThe name of the branch in the source repository where someone created the pull request, such as
annejohnson/new-features.destinationRepositoryOwnerThe owner of the destination repository.
destinationRepositoryNameThe name of the destination repository.
destinationBranchNameThe name of the branch in the destination repository to merge the changes into.
isClosedA Boolean value that indicates whether the pull request is closed.
isCrossRepositoryA Boolean value that indicates whether the pull request is between repositories that different users or organizations own.
ScmGitReference
idA string that uniquely identifies the Git reference.
typeA constant value of
scmGitReferences, indicating that this data structure represents an SCM Git reference.nameThe human-readable name of the Git reference.
canonicalNameThe fully qualified name of the Git reference, such as
refs/heads/bug-fix. This uniquely identifies a specific branch, tag, or other reference.isDeletedA Boolean value that indicates whether the Git reference is deleted.
kindThe type of Git reference, such as
branchortag.