137
Happened now (feddit.it)
submitted 1 year ago* (last edited 1 year ago) by NicKoehler@feddit.it to c/programmerhumor@lemmy.ml

top 18 comments
sorted by: hot top controversial new old
[-] flauschke@feddit.de 32 points 1 year ago

FYI you should be able to disallow directly pushing to the master branch and only allow merging

[-] NicKoehler@feddit.it 14 points 1 year ago

That's exactly what a not stupid person would do

[-] VanillaGorilla@kbin.social 4 points 1 year ago

But that happened to most of us I'd wager, so you're at least not alone.

[-] phazed09@kbin.social 7 points 1 year ago

And this is why you always immediately turn on branch protection.

[-] FoxBJK@midwest.social 5 points 1 year ago

Who needs "Read-only Friday" anyways, right?

[-] jmsw22@lemmy.ml 4 points 1 year ago

That sounds like a Monday problem

[-] PCChipsM922U@sh.itjust.works 4 points 1 year ago

Fuck, there goes the weekend 🤦.

[-] Primarily0617@kbin.social 3 points 1 year ago

why on earth would you have a direct main CD pipeline without proper protections against pushing straight to that branch?

[-] erogenouswarzone@lemmy.ml 3 points 1 year ago

Oh fuck. Hang on to your pooper.

[-] Bishma@kbin.social 2 points 1 year ago

This is my I never let let my prod pipelines run builds automatically.

[-] digitallyfree@kbin.social 2 points 1 year ago

You didn't just push it to main, you also pushed confidential code to the public repo!

[-] Rodsterlings_cig@kbin.social 2 points 1 year ago

To your own personal repository, right?!

[-] NicKoehler@feddit.it 5 points 1 year ago

That's the neat part, no

[-] JollyRoberts@kbin.social 2 points 1 year ago

@NicKoehler

lol, been there, got the t-shirt.

[-] BruceDoh@sh.itjust.works 2 points 1 year ago

But surely you can just revert it, no big deal. Unless you have CI/CD pipelines on an unprotected branch...

[-] borkcorkedforks@kbin.social 1 points 1 year ago

So, do you have automatic deployments or?

[-] siriusmart@feddit.uk 0 points 1 year ago

you mean master? github changed the default branch name from master to main during black history month or something, i think its complete nonsense

[-] siriusmart@feddit.uk 1 points 1 year ago

for that i always change my master branch name back to master

this post was submitted on 23 Jun 2023
137 points (99.3% liked)

Programmer Humor

32371 readers
597 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS