This repository was archived by the owner on Oct 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
[BUG] Slackbot notifier false positive notification #125
Copy link
Copy link
Open
Labels
Description
Expected Behavior
When I log a time entry like this one:
Worked on PROJECT-1235: Solved bug and submitted PR
I should not get a notification from the Slackbot.
Actual Behavior
When I log a time entry like this one:
Worked on PROJECT-1235: Solved bug and submitted PR
I get a notification from the Slackbot.
Possible Fix
Improve the regular expression. The : is throwing things off.
To Reproduce
- Log an entry with
PROJECT-123:in Noko - Get a notification around 8pm
Additional Information
Here is more info:
pecas/app/domain/time_entry/description_rules.rb
Lines 18 to 24 in b8891ad
def has_word_count? if has_jira_ticket? @description.split.size > 1 else @description.split.size > 0 end end JIRA_REGEX = /(?:\s|^)([A-Z]+-[0-9]+)(?=\s|$)/
I will abide by the code of conduct
Reactions are currently unavailable