Skip to content

Conversation

@Madumo
Copy link
Member

@Madumo Madumo commented Jan 28, 2020

When we declare the related stacks of a PR within it's description, the regex to extract those stacks didn't allow for a dot in it's name.

When requesting reviewers for the stack #dispatch/node.js, the extracted stack name was node, not node.js. Since node didn't match any stacks within our config, it was ignored.

This change to the regex will a correctly capture node.js instead of just node.

@mirego-builds
Copy link

🦀 Requesting reviewers for this pull request:

  • @garno (contributor with 0 commits in the last 90 days and 5 commits overall)

@mirego-builds mirego-builds requested a review from garno January 28, 2020 16:37
@Madumo Madumo force-pushed the fix/body-extract-regex branch from f9d6cdc to 09a621b Compare January 28, 2020 16:39
@garno
Copy link
Member

garno commented Jan 28, 2020

Can you add a small test to ensure we do not break this behaviour in the future?

default_stacks = Map.get(params, "stacks", "")

~r/#dispatch\/(\w+)/i
~r/#dispatch\/([\w.]+)/i
Copy link
Member

@Boubalou Boubalou Jan 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Une regex... un bug! La saga se poursuit! 🗡

@Madumo
Copy link
Member Author

Madumo commented Jan 28, 2020

@garno Ha! I pushed a test 15 seconds before you submitted your comment 😎

@Madumo Madumo merged commit fb13d55 into master Jan 28, 2020
@Madumo Madumo deleted the fix/body-extract-regex branch January 28, 2020 16:45
Copy link
Member

@remi remi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants