How to completely remove an issue from GitHub?

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

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

11条回答
  •  野趣味
    野趣味 (楼主)
    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.

提交回复
热议问题