Pull request into develop branch - should you close feature branch on merge?

Jake Walters April 20, 2020

Our team is debating leaving a feature/task branch open vs closing it when we merge that branch into the develop branch through a pull request. 

Could we have some input on reasons to keep open vs close?

Couldn't find much information online about this topic and would be good to have some wider opinions.

Thanks 

Jake

1 comment

Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 20, 2020

Hi @Jake Walters,

Welcome to the Community!

I'm going to start by saying that I'm sure there are really good reasons for either option, it depends on how you work.

We opt to close branches as soon as a feature has merged.  Why? Because it takes seconds to recreate them if you really need something with the same name.  However, if we leave them open we need to constantly refresh with a merge from the development branch to keep the branch in sync.

That's my two cents.  I'd love to hear the thoughts and opinions from others.

-Jimmy

Like # people like this
Jake Walters April 21, 2020

Hi @Jimmy Seddon 

Thank you!

I'm fairly used to closing feature branches once that work is part of the main branch as I see no reason (yet) to keep it open, it makes sense for any future updates to be made in a new branch from develop. 

Looking forward to hearing any more opinions.

Like # people like this
Kemboi May 2, 2020

Hi @Jimmy Seddon  

Actually the branch management looks cleaner and smarter upon closing a branch after merging to the develop branch

Like # people like this
Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 2, 2020

Agreed @Kemboi!  Another good reason to opt for closing branches vs leaving them open.

Like # people like this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events