migrationsMapCommitAuthor
Map a commit author
Details
- Method:
PATCH - Path:
/repos/{owner}/{repo}/import/authors/{author_id} - Operation ID:
migrations/map-commit-author
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"
},
"author_id": {
"description": "",
"required": true,
"location": "path",
"type": "integer"
},
"email": {
"description": "The new Git author email.",
"required": false,
"location": "body",
"type": "string"
},
"name": {
"description": "The new Git author name.",
"required": false,
"location": "body",
"type": "string"
}
}Response Schema
{
"title": "Porter Author",
"description": "Porter Author",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"remote_id": {
"type": "string"
},
"remote_name": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"import_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"id",
"remote_id",
"remote_name",
"email",
"name",
"url",
"import_url"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('migrationsMapCommitAuthor', {
# Add required parameters here
})