TkTech / notifico

IRC Message Relay
http://n.tkte.ch
MIT License
155 stars 39 forks source link

Add support for wildcard character to filter branches #199

Closed atoomic closed 2 years ago

atoomic commented 4 years ago

Right now the git branches to relay messages are a list [case insensitive] From UI A comma-separated list of branches to forward, or blank for all. Ex: "master, dev"

It would be nice to use some wildcard character to do something xyz* to track all branches starting with xyz

A nice addition would be also to add a negation like ! so we can skip some branches for example !smoke/*

This seems such a change could be made here https://github.com/TkTech/notifico/blob/6bdc0c36948741b3d0bac897a02b7b63cabfec6c/notifico/services/hooks/github.py#L763

but also for other services like

notifico/services/hooks/bitbucket.py
notifico/services/hooks/github.py
notifico/services/hooks/gitlab.py