@@ -14276,6 +14276,150 @@ components:
1427614276 test_level:
1427714277 $ref: "#/components/schemas/CIAppTestLevel"
1427814278 type: object
14279+ CIAppGitHubAccountAttributes:
14280+ description: Attributes describing a GitHub account's CI Visibility opt-in status.
14281+ properties:
14282+ account:
14283+ description: The GitHub account (organization or user) name.
14284+ example: datadog
14285+ type: string
14286+ enabled:
14287+ description: Whether CI Visibility is enabled at the account level.
14288+ example: true
14289+ type: boolean
14290+ host:
14291+ description: The GitHub host (`github.com` or a GitHub Enterprise Server (GHES) hostname) this account belongs to.
14292+ example: github.com
14293+ type: string
14294+ repo_count:
14295+ description: The number of repositories known for this account.
14296+ example: 12
14297+ format: int64
14298+ type: integer
14299+ repositories:
14300+ description: The repositories belonging to this account, with their individual opt-in status.
14301+ items:
14302+ $ref: "#/components/schemas/CIAppGitHubAccountRepository"
14303+ type: array
14304+ type: object
14305+ CIAppGitHubAccountData:
14306+ description: Data object for a GitHub account.
14307+ properties:
14308+ attributes:
14309+ $ref: "#/components/schemas/CIAppGitHubAccountAttributes"
14310+ id:
14311+ description: |-
14312+ The account's unique identifier, in the form `<host>/<account name>`
14313+ (for example `github.com/datadog`).
14314+ example: github.com/datadog
14315+ type: string
14316+ type:
14317+ $ref: "#/components/schemas/CIAppGitHubAccountType"
14318+ required:
14319+ - id
14320+ - type
14321+ - attributes
14322+ type: object
14323+ CIAppGitHubAccountRepository:
14324+ description: A GitHub repository within a GitHub account, and its CI Visibility opt-in status.
14325+ properties:
14326+ enabled:
14327+ description: Whether CI Visibility is enabled for this repository.
14328+ example: true
14329+ type: boolean
14330+ name:
14331+ description: The repository name.
14332+ example: shopist
14333+ type: string
14334+ type: object
14335+ CIAppGitHubAccountResponse:
14336+ description: Response object containing a single GitHub account's CI Visibility opt-in status.
14337+ properties:
14338+ data:
14339+ $ref: "#/components/schemas/CIAppGitHubAccountData"
14340+ required:
14341+ - data
14342+ type: object
14343+ CIAppGitHubAccountType:
14344+ description: |-
14345+ JSON:API type for the GitHub account resource.
14346+ The value must always be `ci_github_account`.
14347+ enum:
14348+ - ci_github_account
14349+ example: ci_github_account
14350+ type: string
14351+ x-enum-varnames:
14352+ - CI_GITHUB_ACCOUNT
14353+ CIAppGitHubAccountUpdateRequest:
14354+ description: Request object for updating a GitHub account's CI Visibility opt-in status.
14355+ properties:
14356+ data:
14357+ $ref: "#/components/schemas/CIAppGitHubAccountUpdateRequestData"
14358+ required:
14359+ - data
14360+ type: object
14361+ CIAppGitHubAccountUpdateRequestAttributes:
14362+ description: |-
14363+ Attributes for updating a GitHub account's CI Visibility opt-in status.
14364+ At least one of `enabled` or `repository.enabled` must be provided.
14365+ properties:
14366+ account:
14367+ description: The GitHub account (organization or user) name to update, identified by name.
14368+ example: datadog
14369+ minLength: 1
14370+ type: string
14371+ enabled:
14372+ description: Whether to enable or disable CI Visibility at the account level.
14373+ example: true
14374+ type: boolean
14375+ host:
14376+ description: |-
14377+ The GitHub host (`github.com` or a GHES hostname) the account belongs to. Required to disambiguate
14378+ when the same account name exists on more than one host.
14379+ example: github.com
14380+ type: string
14381+ repository:
14382+ $ref: "#/components/schemas/CIAppGitHubAccountUpdateRequestRepository"
14383+ required:
14384+ - account
14385+ type: object
14386+ CIAppGitHubAccountUpdateRequestData:
14387+ description: Data object for updating a GitHub account's CI Visibility opt-in status.
14388+ properties:
14389+ attributes:
14390+ $ref: "#/components/schemas/CIAppGitHubAccountUpdateRequestAttributes"
14391+ type:
14392+ $ref: "#/components/schemas/CIAppGitHubAccountType"
14393+ required:
14394+ - type
14395+ - attributes
14396+ type: object
14397+ CIAppGitHubAccountUpdateRequestRepository:
14398+ description: Repository-level opt-in change to apply, identified by name.
14399+ properties:
14400+ enabled:
14401+ description: Whether to enable or disable CI Visibility for this repository.
14402+ example: true
14403+ type: boolean
14404+ name:
14405+ description: The repository name to update.
14406+ example: shopist
14407+ minLength: 1
14408+ type: string
14409+ required:
14410+ - name
14411+ - enabled
14412+ type: object
14413+ CIAppGitHubAccountsResponse:
14414+ description: Response object containing a list of GitHub accounts and their CI Visibility opt-in status.
14415+ properties:
14416+ data:
14417+ items:
14418+ $ref: "#/components/schemas/CIAppGitHubAccountData"
14419+ type: array
14420+ required:
14421+ - data
14422+ type: object
1427914423 CIAppGitInfo:
1428014424 description: |-
1428114425 If pipelines are triggered due to actions to a Git repository, then all payloads must contain this.
@@ -130384,6 +130528,127 @@ paths:
130384130528 x-unstable: |-
130385130529 **Note**: This endpoint is in preview and is subject to change.
130386130530 If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
130531+ /api/v2/ci/github/accounts:
130532+ get:
130533+ description: |-
130534+ Retrieve the list of GitHub accounts (organizations or users) available to this Datadog organization
130535+ through its GitHub App installation, along with each account's and repository's CI Visibility opt-in status.
130536+ operationId: ListCIAppGitHubAccounts
130537+ responses:
130538+ "200":
130539+ content:
130540+ application/json:
130541+ examples:
130542+ default:
130543+ value:
130544+ data:
130545+ - attributes:
130546+ account: datadog
130547+ enabled: true
130548+ host: github.com
130549+ repo_count: 2
130550+ repositories:
130551+ - enabled: true
130552+ name: shopist
130553+ - enabled: false
130554+ name: dd-source
130555+ id: github.com/datadog
130556+ type: ci_github_account
130557+ schema:
130558+ $ref: "#/components/schemas/CIAppGitHubAccountsResponse"
130559+ description: OK
130560+ "400":
130561+ $ref: "#/components/responses/BadRequestResponse"
130562+ "403":
130563+ $ref: "#/components/responses/NotAuthorizedResponse"
130564+ "404":
130565+ $ref: "#/components/responses/NotFoundResponse"
130566+ "429":
130567+ $ref: "#/components/responses/TooManyRequestsResponse"
130568+ security:
130569+ - apiKeyAuth: []
130570+ appKeyAuth: []
130571+ - AuthZ:
130572+ - integrations_read
130573+ summary: List GitHub CI Visibility status
130574+ tags: ["CI Visibility GitHub Accounts"]
130575+ x-permission:
130576+ operator: OR
130577+ permissions:
130578+ - integrations_read
130579+ patch:
130580+ description: |-
130581+ Enable or disable CI Visibility for a GitHub account, one of its repositories, or both in the same request.
130582+ The account (and, optionally, repository) are identified by name. Account-level and repository-level
130583+ changes are independent and may both be supplied in the same request. At least one of `enabled` or
130584+ `repository.enabled` must be provided. If the account name matches installations on more than one host,
130585+ `host` must be supplied to disambiguate, otherwise a 409 is returned. Returns a 404 if the CI Visibility
130586+ GitHub integration is not enabled for this organization, or if the given account or repository cannot be
130587+ found by name.
130588+ operationId: UpdateCIAppGitHubAccount
130589+ requestBody:
130590+ content:
130591+ application/json:
130592+ examples:
130593+ default:
130594+ value:
130595+ data:
130596+ attributes:
130597+ account: datadog
130598+ enabled: true
130599+ host: github.com
130600+ repository:
130601+ enabled: true
130602+ name: shopist
130603+ type: ci_github_account
130604+ schema:
130605+ $ref: "#/components/schemas/CIAppGitHubAccountUpdateRequest"
130606+ required: true
130607+ responses:
130608+ "200":
130609+ content:
130610+ application/json:
130611+ examples:
130612+ default:
130613+ value:
130614+ data:
130615+ attributes:
130616+ account: datadog
130617+ enabled: true
130618+ host: github.com
130619+ repo_count: 2
130620+ repositories:
130621+ - enabled: true
130622+ name: shopist
130623+ - enabled: false
130624+ name: dd-source
130625+ id: github.com/datadog
130626+ type: ci_github_account
130627+ schema:
130628+ $ref: "#/components/schemas/CIAppGitHubAccountResponse"
130629+ description: OK
130630+ "400":
130631+ $ref: "#/components/responses/BadRequestResponse"
130632+ "403":
130633+ $ref: "#/components/responses/NotAuthorizedResponse"
130634+ "404":
130635+ $ref: "#/components/responses/NotFoundResponse"
130636+ "409":
130637+ $ref: "#/components/responses/ConflictResponse"
130638+ "429":
130639+ $ref: "#/components/responses/TooManyRequestsResponse"
130640+ security:
130641+ - apiKeyAuth: []
130642+ appKeyAuth: []
130643+ - AuthZ:
130644+ - ci_provider_settings_write
130645+ summary: Update GitHub CI Visibility status
130646+ tags: ["CI Visibility GitHub Accounts"]
130647+ x-codegen-request-body-name: body
130648+ x-permission:
130649+ operator: OR
130650+ permissions:
130651+ - ci_provider_settings_write
130387130652 /api/v2/ci/pipeline:
130388130653 post:
130389130654 description: |-
@@ -213005,6 +213270,11 @@ tags:
213005213270 - description: |-
213006213271 Use the Bits AI endpoints to retrieve AI-powered investigations.
213007213272 name: Bits AI
213273+ - description: |-
213274+ Manage CI Visibility opt-in status for your GitHub accounts and repositories. See the
213275+ [CI Visibility GitHub Actions setup page](https://docs.datadoghq.com/continuous_integration/pipelines/github/)
213276+ for more information.
213277+ name: CI Visibility GitHub Accounts
213008213278 - description: |-
213009213279 Search or aggregate your CI Visibility pipeline events and send them to your Datadog site over HTTP. See the [CI Pipeline Visibility in Datadog page](https://docs.datadoghq.com/continuous_integration/pipelines/) for more information.
213010213280 name: CI Visibility Pipelines
0 commit comments