How to completely remove an issue from GitHub?

后端 未结 11 1802
野的像风
野的像风 2020-12-04 06:55

Is it possible to completely remove an issue from the GitHub issue tracker?

相关标签:
11条回答
  • 2020-12-04 07:09

    Still impossible. Another workaround to the ones suggested in the other answers is to label the issue as "deleted" (or any other label you might fancy better), to be able to filter them out if you use the github API to retrieve them. Obviously you should use that specific label only for this purpose, setting the label when you close the issue.

    0 讨论(0)
  • 2020-12-04 07:12

    No, the github API only allows you to open/close/reopen issues. Here's the Issues API docs.

    0 讨论(0)
  • 2020-12-04 07:18

    For posterity: Deleting issues would be a bad thing, since in general they can be targets of associations on github.

    But if you are willing to sacrifice the collaboration info, here is a "whack it with a sledgehammer" approach:

    1. Clone your original repo.
    2. Copy your issues via the Issues API.
    3. Delete the original repo; alternatively, chose a new name for your new repo.
    4. Re-create a new repo based on your clone.
    5. Re-create the issues you want to keep via the Issues API.

    I imagine this could potentially lose a lot of other linking information as well such as forks, pull requests, etc.

    0 讨论(0)
  • 2020-12-04 07:22
    1. You can create a new repository.
    2. Transfer (yeah it is possible) unwanted issues to the new repository.
    3. Then delete the new repository.
    0 讨论(0)
  • 2020-12-04 07:26

    Update Nov 2018: You now can delete your issues!
    See "Github - remove issues entered in error"


    At May 2018, original answer:

    Three 8 years later, and closing issues remains the answer (still no deletion possible).
    See "The Ghost of Issues Past", where GitHub advise to check and close:

    • issues opened over a year ago state:open created:<2013-01-01
    • the ones I'm involved with involves:twp state:open created:<2013-01-01
    • and those not updated in the last year involves:twp state:open updated:<2013-01-01
    0 讨论(0)
提交回复
热议问题