Settings

Theme

Ask HN: I forgot to remove a swear word from a PR and it got merged. What now?

6 points by agluszak a month ago · 8 comments · 1 min read

Reader

The swear word was in Polish, so it didn't draw attention in review. This is a public, open-source project. End users won't see the swear word, but maintainers will when they run the test. Submitting a single line PR to remove that swear word sounds like the simplest solution, but is it the best one?

Woods369 a month ago

Request a MASSIVE new PR with groundbreaking new changes and bury the mishap in thousands of new additions ;-) or.. keep it in an present as a feature rather than anything malicious .. haha..

vunderba a month ago

Well I was going to suggest changing a single letter on the word to make it non-offensive and put "typo" in the PR message but if it's the four-letter word that I'm thinking of your options are rather limited!

  • gus_massa a month ago

    Just remove the word, but use an innocent title like "Fix typo". Write a short explanation in the PR.

bob1029 a month ago

Pretend like it didn't happen.

8organicbits a month ago

It's a personal preference, but you could choose to leave it as-is. Linux, for example, has swear words.

https://www.vidarholen.net/contents/wordcount/#fuck*,shit*,d...

quantified a month ago

Your HN profile contains significant professional info. This is a group that might look up your commits to see how bad a word it is. For example, it's 4:30am and I myself am responding to your question out of boredom. If this post makes it to the top of HN, you could well be outed. You will be eventually. Will anyone care?

I'd say leave alone, but... By publicizing this in the first place, you will be contributing to a notion among the puerile that "I can add cuss words to my PR, this guy did". Which maybe doesn't matter that much? Does anyone care?

Is it colorful? What's it aimed at?

  • agluszakOP a month ago

    > If this post makes it to the top of HN, you could well be outed. You will be eventually.

    At least it will be funny then...

    > Is it colorful? What's it aimed at?

    It's just a single "dick" in Polish inserted in a debug logging statement

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection