DEV Community

Discussion on: Git + GitHub Best Practices for Teams (Opinionated)

Collapse
 
laurieontech profile image
Laurie

Great stuff! I might add that if you're tracking issues it's great to include that ticket number (or equivalent) in your branch name. When you make your PR it is a 1-1 mapping for reviewers to look at the requirements your code should fulfill.

Collapse
 
nicolus profile image
Nicolas Bailly

Definitely. In gitlab (I'm guessing it works in github too) it will pop in the history of the ticket, and it can even automatically close tickets by accepting merge requests if the commit message include a keyword like "fix" or "close" in front of the ticket number.

Collapse
 
laurieontech profile image
Laurie

Definitely. Oftentimes tickets can be in different systems though. So that number is especially important.

Collapse
 
bholmesdev profile image
Ben Holmes

Totally agree! To be honest, I have limited industry exposure from internships as a college student, so I haven't worked much with ticketing, backlogs, or other more robust systems.

Should probably add a clarification of my own experience to the post for some context.

Collapse
 
laurieontech profile image
Laurie

You wouldn't have been able to tell! It's applicable at all levels.