Creating dependency for pull requests via API #8164

Closed
opened 2025-11-02 07:55:43 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @suchAdemon on GitHub (Nov 24, 2021).

Would it be possible to get an API call which allows you to create dependencies between pull requests?

  • Example 1: Two pull request are open, user curls API call with something like that:
    curl -X POST https://giteaserver/api/v1/repos/{owner}/{repo}/pulls/{index} -H "accept: application/json" -H "Content-Type: application/json" -d "{ 'dependency': '<index_of_pull_request_to_depend_on>' }"

  • Example 2: One pull requests already exists and a second one gets opened by user with API call like that:
    curl -X POST https://giteaserver/api/v1/repos/{owner}/{repo}/pulls -H "accept: application/json" -H "Content-Type: application/json" -d "{<... already defined data for ceating pullrequest ...> , 'dependency': '<index_of_pull_request_to_depend_on>' }"

This would help in automating pull request which are depending on other pull request a lot.

Originally created by @suchAdemon on GitHub (Nov 24, 2021). Would it be possible to get an API call which allows you to create dependencies between pull requests? - Example 1: Two pull request are open, user curls API call with something like that: `curl -X POST https://giteaserver/api/v1/repos/{owner}/{repo}/pulls/{index} -H "accept: application/json" -H "Content-Type: application/json" -d "{ 'dependency': '<index_of_pull_request_to_depend_on>' }"` - Example 2: One pull requests already exists and a second one gets opened by user with API call like that: `curl -X POST https://giteaserver/api/v1/repos/{owner}/{repo}/pulls -H "accept: application/json" -H "Content-Type: application/json" -d "{<... already defined data for ceating pullrequest ...> , 'dependency': '<index_of_pull_request_to_depend_on>' }"` This would help in automating pull request which are depending on other pull request a lot.
GiteaMirror added the issue/duplicate label 2025-11-02 07:55:43 -06:00
Author
Owner

@qwerty287 commented on GitHub (Nov 27, 2021):

Duplicate of https://github.com/go-gitea/gitea/issues/15393?

@qwerty287 commented on GitHub (Nov 27, 2021): Duplicate of https://github.com/go-gitea/gitea/issues/15393?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8164