r/github • • 8h ago

Question Delete pull request?

Hi all,

I’m very new to using GitHub and I’ve made a mistake and I’m a bit panicked.

Basically I made a pull request and I’ve accidentally exposed my personal information, but I don’t see any way to actually delete the PR and I’ve googled that deleting your account won’t hide it either. The repo maintainer doesn’t seem to have any way to message them either. I know it’s stupid but I have a stalker so I’m very paranoid about having my personal information out there.

I’ve reached out to GH support but idk if they would delete it?

0 Upvotes

13 comments sorted by

6

u/Soggy_Writing_3912 7h ago
  1. once pushed, it cannot be deleted.
  2. you can overwrite the commit (force push) to "erase" the HEAD version, but...
  3. if someone has the git SHA, then they can still access it via the GH web ui.
  4. you can close the PR, but again, its not like the data has not yet been taken up by bots, etc
  5. if you decide to at least erase the HEAD, then close the branch and also delete any Github Actions that might have referenced the specific commit SHA.

tldr; the commit SHA is forever present unless the whole repo (AND all its clones) get deleted. Without this nuclear step, your data is definitely open to anyone who have the git repo.

2

u/FlyAwayTomorrow 7h ago

Where did u include the data? You can edit title and description and I don‘t think the history is being saved. If you pushed it in the code itself it might be hard to get it down again. Rotation is an option which means … moving in your case.

2

u/Soggy_Writing_3912 7h ago

no - git history will definitely be saved. And PR edit history does show up as events in the timeline view in GH web ui.

-1

u/Ok-Writer5758 7h ago

Dang… back into witness protection… 😞✌️

0

u/vmshade0 8h ago

This be a weird ask, but what personal information was leaked? Was it something like your email, password, address?

-4

u/Ok-Writer5758 7h ago edited 6h ago

Why, want it? /j

6

u/Soggy_Writing_3912 7h ago

don't get irritated, the person who asked might have been genuinely trying to help. If you cannot accept help, then don't come to reddit.

0

u/Ok-Writer5758 7h ago edited 6h ago

I’m not irritated, was more a joke - especially because they acknowledged it was a weird ask so I was just having fun. But at the same time I think sharing the nature of the information makes it easier for someone to find it.

5

u/Dazzling_Cherry_6513 7h ago

respectfully no one here cares abt your PII

-1

u/Ok-Writer5758 7h ago

I already made one stupid mistake today, not gonna make another 🤷‍♀️

2

u/Soggy_Writing_3912 6h ago

fyi: jokes don't get conveyed in written format.

2

u/Crafty-Animator6918 7h ago

Por lo que tú mismo dijiste, es una situación muy rara, entonces en base a saber que se filtro te pueden hacer saber que hacer...

1

u/Old-Awareness4657 10m ago

It's definitely going to be easier to rotate the secret than to scrub it from git, so do that