Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add issue's dependencies informations in issue API endpoint #22115

Closed
kvitrvn opened this issue Dec 12, 2022 · 0 comments · Fixed by #17935
Closed

Add issue's dependencies informations in issue API endpoint #22115

kvitrvn opened this issue Dec 12, 2022 · 0 comments · Fixed by #17935
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@kvitrvn
Copy link

kvitrvn commented Dec 12, 2022

Feature Description

I think it will be great if the Gitea issue API response can send a list of its dependencies if they exists in addition to current informations.

The API issue response could be:

"_comment": "current informations ommit for brevity"
"repository": {
    "id": 1,
    "name": "test",
    "owner": "root",
    "full_name": "root/test"
},
"dependencies": [
    {
      "id": 1,
      "title": "ticket 1",
      "url": "http://localhost:3000/api/v1/repos/root/test/issues/1",
      "html_url": "http://localhost:3000/root/test/issues/1"
    }
]

I'm currently working on it to propose a PR if it's accepted 😃

Screenshots

No response

@kvitrvn kvitrvn added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Dec 12, 2022
jolheiser pushed a commit that referenced this issue Mar 28, 2023
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 #15393
Closes #22115

Co-authored-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant