460
submitted 2 weeks ago by [email protected] to c/[email protected]

Rolling, rolling, rolling back nothing I love more than communicating why we had to roll back again (⁠ノ⁠ಠ⁠益⁠ಠ⁠)⁠ノ

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 16 points 2 weeks ago

Pre-commit hooks don't require a pipeline nor any money. In most cases it's one line of code to make the tests run every commit

[-] [email protected] 4 points 2 weeks ago

Even better: use pre-commit. It supports all kinds of stuff without a lot of config. This gets you (and GP) a lot of the features of a full-blown CI pipeline, but it all runs locally before anyone breaks anything.

[-] [email protected] 1 points 2 weeks ago

Stop me from committing my work and I will hunt you down to the ends of the earth.

[-] [email protected] 21 points 2 weeks ago

Fix your shit and it won't stop you from committing.

It's also usually only on certain branches, so you can make a branch where you break things and then fix them before you merge to testing/main/whatever.

[-] [email protected] 6 points 2 weeks ago

TIL precommit hooks can be set per branch. I was being facetious to begin with but this sounds pretty good actually.

[-] [email protected] 1 points 2 weeks ago

Nah, at our place it's applied on all branches...

[-] [email protected] 2 points 2 weeks ago

What do you do if you have code that isn't complete enough to work? Do you have to just leave it untracked?

[-] [email protected] 2 points 2 weeks ago

I don't know what others do, but I personally whip out git commit -n and bypass the hooks in this situation.

[-] [email protected] 3 points 2 weeks ago

Take down prod while I’m on call and seeing my kid and I shall return the favor

[-] [email protected] 2 points 2 weeks ago

I get that a lot

Getting threats over one line of code is called senior development

[-] [email protected] 1 points 2 weeks ago

Don't worry I'm too lazy to hunt you down farther than the coffee shop next to me.

[-] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago)

I agree. I absolutely hate when some pesky git hook rejects some debug code I wrote that I want to commit. Mind you, commit, not integrate. This is the situation where I whip out git commit -n.

this post was submitted on 10 Jul 2025
460 points (96.2% liked)

memes

16476 readers
2914 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS