{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Connect a GitHub or GitLab repository to a Cloudflare Pages project to enable Git-based deployments.","properties":{"path":{"type":"object","properties":{"project_name":{"$ref":"#/definitions/pages_project_name"},"account_id":{"$ref":"#/definitions/pages_identifier"}},"required":["project_name","account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/pages_source_connect_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"pages_project_name":{"description":"Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.","type":"string","pattern":"^[a-z0-9][a-z0-9-]*$","examples":["this-is-my-project-01"]},"pages_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"pages_source_connect_request":{"description":"Repository and deployment settings for connecting a Git repository to a Pages project.","type":"object","properties":{"config":{"allOf":[{"$ref":"#/definitions/pages_source_config"}]},"type":{"$ref":"#/definitions/pages_source_type"}},"required":["type","config"]},"pages_source_config":{"type":"object","properties":{"deployments_enabled":{"description":"Whether to enable automatic deployments when pushing to the source repository.\nWhen disabled, no deployments (production or preview) will be triggered automatically.\n","type":"boolean"},"owner":{"description":"The owner of the repository.","type":"string","examples":["my-org"]},"owner_id":{"description":"The owner ID of the repository.","type":"string","examples":["12345678"]},"path_excludes":{"description":"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported.","type":"array","items":{"type":"string"}},"path_includes":{"description":"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported.","type":"array","items":{"type":"string"}},"pr_comments_enabled":{"description":"Whether to enable PR comments.","type":"boolean"},"preview_branch_excludes":{"description":"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`.","type":"array","items":{"type":"string"}},"preview_branch_includes":{"description":"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`.","type":"array","items":{"type":"string"}},"preview_deployment_setting":{"description":"Controls whether commits to preview branches trigger a preview deployment.","type":"string","enum":["all","none","custom"]},"production_branch":{"description":"The production branch of the repository.","type":"string","examples":["main"]},"production_deployments_enabled":{"description":"Whether to trigger a production deployment on commits to the production branch.","type":"boolean"},"repo_id":{"description":"The ID of the repository.","type":"string","examples":["12345678"]},"repo_name":{"description":"The name of the repository.","type":"string","examples":["my-repo"]}},"required":["deployments_enabled","owner","owner_id","path_excludes","path_includes","pr_comments_enabled","preview_branch_excludes","preview_branch_includes","preview_deployment_setting","production_branch","production_deployments_enabled","repo_id","repo_name"]},"pages_source_type":{"description":"The source control management provider.","type":"string","enum":["github","gitlab"],"examples":["github"]}}},"name":"Connect a Git repository","id":"cloudflare.pages-project-connect-project-source","example":{"path":{"project_name":"this-is-my-project-01","account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"type":"github","config":{"deployments_enabled":false,"owner":"my-org","owner_id":"12345678","path_excludes":[],"path_includes":[],"pr_comments_enabled":false,"preview_branch_excludes":[],"preview_branch_includes":[],"preview_deployment_setting":"all","production_branch":"main","production_deployments_enabled":false,"repo_id":"12345678","repo_name":"my-repo"}}},"maxRequests":1,"summary":false}}