Solve vulnerabilities using Pull Requests (PR) via API
Learn how to use Pull Requests (PR) via the API.
Assume there is a repository with loads of vulnerabilities. It will take time to go through each one of them and potentially fix them. Luckily, Debricked offers the ability to open a pull request where it tries to solve as many vulnerabilities as possible at once.
Endpoints
/api/{version}/open/repository/{repositoryId}/pull-request/branch/{branchId}/{notify}/{includeUnaffected}
/api/{version}/open/repository/{repositoryId}/get-branches
Debricked can generate a new bulk pull request for the repository, with ID 15707 in this case (shown in the URL). We can find the branch ID using the get-branches endpoint.
Example:
First, Debricked gets the branch ID
then, a new pull request is created on branch ID 2, enabling notification, not including unaffected dependencies in the PR.
Last updated
Was this helpful?