6

I am using a public GitHub repository to collaborate on a project. Because I am an idiot, I created an issue with some sensitive information that I can't share.

Because I need the overall issue information, and the sensitive information could be withdrawn with no meaningful effects, is there a way to remove it from the issue without the necessity to delete it?

Most of the answers I've found talk about removing information from files and their commits, like this one and this one.

riQQ
  • 9,878
  • 7
  • 49
  • 66

1 Answers1

8
  1. Click on edited in the top bar of the edited issue
  2. Click on the revision you want to remove in the popup menu
  3. Click on Options
  4. Click on Delete revision from history

Note

The most recent revision cannot be deleted.
Need to delete sensitive information? Go to the specific edit where the information was added.

To delete the most recent revision, make another new revision. Then the previously most recent revision can be deleted.

screenshot issue comment with popup menu



screenshot revision options

There will still be an entry in the list of all revisions, but it's not clickable anymore and the content is not available.

riQQ
  • 9,878
  • 7
  • 49
  • 66
  • Doesn't work. It is still visible. – flm Jan 06 '23 at 11:10
  • It seems to work (duly appreciated), because the sensitive data becomes inaccessible via the web interface, but the revision history still contains the timestamp of your removed edit (marked as deleted), so it is possible that the contents with the sensitive data are still left in the database, not just their timestamp. – mirekphd Jul 02 '23 at 11:49