reposUpdateInformationAboutPagesSite
Update information about a GitHub Pages site
Details
- Method:
PUT - Path:
/repos/{owner}/{repo}/pages - Operation ID:
repos/update-information-about-pages-site
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"cname": {
"description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site).\"",
"required": false,
"location": "body",
"type": "string"
},
"https_enforced": {
"description": "Specify whether HTTPS should be enforced for the repository.",
"required": false,
"location": "body",
"type": "boolean"
},
"build_type": {
"description": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"legacy",
"workflow"
]
},
"source": {
"description": "",
"required": false,
"location": "body",
"type": "string"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposUpdateInformationAboutPagesSite', {
# Add required parameters here
})