SvanBoxel / delete-merged-branch

No more manually deleting merged branches, this lovely app does it for you.
https://github.com/apps/delete-merged-branch/
ISC License
323 stars 55 forks source link

If I want to exempt certain branches like 'release' or 'development' from this, is that possible? #29

Closed Ishaanhike closed 5 years ago

Ishaanhike commented 6 years ago

Use case:

Other than feature branches, I have multiple release branches which time to time merge into master.

Though it will be great to have the feature branches deleted automatically, is it possible to exempt certain branches?

SvanBoxel commented 6 years ago

I agree @Ishaanhike, this should be possible. I'm a bit short on time at the moment, but keep an 👁 on this project!

tplk commented 6 years ago

I made similar app, it's quite easy to implement. https://github.com/tplk/delete-branch-after-pr-merge/blob/master/src/index.js#L30 I'll create a pr if I have some spare time.

berthamilton commented 6 years ago

I'm also interested in this. Any news on when you might have a chance to look into it?

SvanBoxel commented 5 years ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

Ishaanhike commented 5 years ago

Thanks @SvanBoxel 😀 This also works if I use

exclude
- release*

Will it exclude all branches named with release_ eg. releasee_1, release_2

tplk commented 5 years ago

@Ishaanhike no it won't, it compares branch names as strings.

Ishaanhike commented 5 years ago

@Ishaanhike no it won't, it compares branch names as strings.

Thanks @tplk , I know its a bit too much to ask for this, if possible please help though. Will solve a huge problem for lot us. Appreciate for your support :)

SvanBoxel commented 5 years ago

@Ishaanhike Go ahead and open a new issue. I'll take a look at it.