]> source.dussan.org Git - gitea.git/commit
Add API to manage issue dependencies (#17935)
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>
Tue, 28 Mar 2023 17:23:25 +0000 (19:23 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 17:23:25 +0000 (13:23 -0400)
commit3cab9c6b0c050bfcb9f2f067e7dc1b0242875254
tree0a781efb66090c244fece965cd7dfe3c57c6cb5e
parent85e8c837b8472ec20e657d2a7ebc6c78c04bffae
Add API to manage issue dependencies (#17935)

Adds API endpoints to manage issue/PR dependencies
* `GET /repos/{owner}/{repo}/issues/{index}/blocks` List issues that are
blocked by this issue
* `POST /repos/{owner}/{repo}/issues/{index}/blocks` Block the issue
given in the body by the issue in path
* `DELETE /repos/{owner}/{repo}/issues/{index}/blocks` Unblock the issue
given in the body by the issue in path
* `GET /repos/{owner}/{repo}/issues/{index}/dependencies` List an
issue's dependencies
* `POST /repos/{owner}/{repo}/issues/{index}/dependencies` Create a new
issue dependencies
* `DELETE /repos/{owner}/{repo}/issues/{index}/dependencies` Remove an
issue dependency

Closes https://github.com/go-gitea/gitea/issues/15393
Closes #22115

Co-authored-by: Andrew Thornton <art27@cantab.net>
12 files changed:
models/issues/dependency.go
models/issues/issue.go
modules/structs/issue.go
options/locale/locale_en-US.ini
routers/api/v1/api.go
routers/api/v1/repo/issue_dependency.go [new file with mode: 0644]
routers/api/v1/swagger/options.go
routers/web/repo/issue.go
routers/web/repo/issue_dependency.go
services/convert/issue.go
templates/repo/issue/view_content/sidebar.tmpl
templates/swagger/v1_json.tmpl