add_issue_dependency
Add a dependency to make one issue blocked by another. Specify the dependent issue and the blocker, with optional cross-repository support.
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).
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) |