add_issue_dependency
Set a dependency so one issue blocks another, with optional cross-repo references.
Instructions
Make an issue depend on (be blocked by) another issue. index is the issue that gains the dependency; dep_index is the blocker. dep_owner/dep_repo default to the same repo but may point at another repo (requires the instance to enable AllowCrossRepositoryDependencies). Returns the target issue (the dependent one).
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": {
"index": "<index>",
"dep_index": "<dep_index>"
},
"name": "add_issue_dependency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name of the issue that will be blocked / gain the dependency (defaults to GITEA_DEFAULT_REPO) | |
| index | Yes | Issue number that will gain the dependency (the dependent / blocked issue) | |
| owner | No | Repository owner of the issue that will be blocked / gain the dependency (defaults to GITEA_DEFAULT_OWNER) | |
| dep_repo | No | Repository name of the dependency issue (defaults to the same repo as `repo`; cross-repo dependencies require the instance to enable AllowCrossRepositoryDependencies) | |
| dep_index | Yes | Issue number of the dependency to add (the blocker) | |
| dep_owner | No | Repository owner of the dependency issue (defaults to the same owner as `owner`; cross-repo dependencies require the instance to enable AllowCrossRepositoryDependencies) |