github_rollback_deployment
Roll back a GitHub environment to an earlier ref by creating a new deployment for that ref and marking the current deployment inactive.
Instructions
Roll back to a previous deployment by creating a new deployment pointing to a specific ref and marking the current deployment as inactive.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"environment": "<environment>",
"ref": "<ref>"
},
"name": "github_rollback_deployment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The git ref (commit SHA, branch, or tag) to deploy | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| environment | Yes | Environment to roll back (e.g. 'production') | |
| currentDeploymentId | No | ID of the current deployment to mark as inactive |