Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Ishaanhike opened this issue Oct 4, 2018 · 8 comments
Labels
enhancement New feature or request released

Comments

@Ishaanhike
Copy link

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
Copy link
Owner

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

@SvanBoxel SvanBoxel added the enhancement New feature or request label Oct 10, 2018
@tplk
Copy link

tplk commented Oct 19, 2018

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
Copy link

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

@SvanBoxel
Copy link
Owner

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Ishaanhike
Copy link
Author

Thanks @SvanBoxel 😀
This also works if I use

exclude
- release*

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

@tplk
Copy link

tplk commented Nov 21, 2018

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

@Ishaanhike
Copy link
Author

@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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

4 participants