Skip to content

[API] Add endpoint to delete PRs #27841

@jthvai

Description

@jthvai

Feature Description

TL;DR:

DELETE /repos/{owner}/{repo}/pulls/{index}

This endpoint should be equivalent to the "Delete" button on a pull request's page (refer to screenshot below).

Screenshot: PR page with the Delete button highlighted

example

An equivalent endpoint doesn't exist in GitHub's API, but it would make sense to implement it like deleting an issue (where a DELETE request is sent to the same route as GETing an issue).

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions