this post was submitted on 23 Jun 2023
134 points (97.2% liked)

Programmer Humor

33090 readers
955 users here now

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

Rules:

founded 5 years ago
MODERATORS
134
Happened now (feddit.it)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

top 17 comments
sorted by: hot top controversial new old
[–] [email protected] 34 points 2 years ago (1 children)

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

[–] [email protected] 15 points 2 years ago (1 children)

That's exactly what a not stupid person would do

[–] [email protected] 4 points 2 years ago

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

[–] [email protected] 7 points 2 years ago

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

[–] [email protected] 5 points 2 years ago

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

[–] [email protected] 4 points 2 years ago

Fuck, there goes the weekend 🤦.

[–] [email protected] 4 points 2 years ago

That sounds like a Monday problem

[–] [email protected] 4 points 2 years ago

Oh fuck. Hang on to your pooper.

[–] [email protected] 3 points 2 years ago

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

[–] [email protected] 2 points 2 years ago (1 children)

To your own personal repository, right?!

[–] [email protected] 5 points 2 years ago

That's the neat part, no

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

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

[–] [email protected] 2 points 2 years ago

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

[–] [email protected] 2 points 2 years ago

@NicKoehler

lol, been there, got the t-shirt.

[–] [email protected] 2 points 2 years ago

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

[–] [email protected] 1 points 2 years 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

[–] [email protected] 1 points 2 years ago

So, do you have automatic deployments or?

load more comments
view more: next ›