Open rjmurillo opened 9 years ago
How about just optional quotes? On Mon, Sep 28, 2015 at 5:32 PM Richard Murillo notifications@github.com wrote:
Some labels may have spaces, so including them causes the hook not to fire.
Today we use the +/- syntax to include a label (e.g. "+debt"), which cannot be used with labels containing spaces (e.g. "+technical debt"). Including the syntax causes the regular expression to fail (looking for EOL after label).
Suggest a mechanism to group the label text to allow for spaces (e.g. "+(technical debt)")
— Reply to this email directly or view it on GitHub https://github.com/kzu/OctoHook/issues/7.
@kzu Either way
Happy to merge a PR ;) On Mon, Sep 28, 2015 at 9:50 PM Richard Murillo notifications@github.com wrote:
@kzu https://github.com/kzu Either way
— Reply to this email directly or view it on GitHub https://github.com/kzu/OctoHook/issues/7#issuecomment-143912988.
:+1: I'll work one up :smile:
:+1:! On Mon, Sep 28, 2015 at 10:01 PM Richard Murillo notifications@github.com wrote:
[image: :+1:] I'll work one up [image: :smile:]
— Reply to this email directly or view it on GitHub https://github.com/kzu/OctoHook/issues/7#issuecomment-143914411.
@kzu #9 has the PR. I've stepped through the code to verify it should behave as expected, but I could not verify since I don't have push access to the sandbox repo.
Some labels may have spaces, so including them causes the hook not to fire.
Today we use the +/- syntax to include a label (e.g. "+debt"), which cannot be used with labels containing spaces (e.g. "+technical debt"). Including the syntax causes the regular expression to fail (looking for EOL after label).
Suggest a mechanism to group the label text to allow for spaces (e.g. "+(technical debt)")