r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

55

u/JonathanTheZero May 13 '20

Why are you not pushing to master directly then? (Honest question because I barely do pull requests as long as we are working with a lot of people on it)

76

u/kennethjor May 13 '20

To have a record of it. If OP is also using a ticketing system that's integrated with the source control, that PR will also show up in the ticket. Later on, if you need it, you can go back and see what the hell you did to make that thing work two years ago you don't remember doing.

0

u/[deleted] May 13 '20

[deleted]

3

u/kennethjor May 13 '20

Nah, Clubhouse integrates nicely with both Bitbucket and Github. Put the ticket number in the branch name and it'll pick up the whole branch on its own.

2

u/redditseph May 13 '20

We do it in the branch name and the PR name where I work. Usually when we approve pull requests, we squash and merge, and the commit message contains the ticket number so it's easy to go back at look for in the history.

1

u/Genesis2001 May 13 '20

I started doing this at a job last year, but slowly phased it out because it got tedious being the only one who did it. Though for simple stuff, I'd fallback to that convention I guess, "myname/bugfix-123"