Page MenuHomePhabricator

Set up Herald rule to automatically answer some common newcomer questions
Closed, ResolvedPublic

Description

An interesting idea after talking to a coworker this weekend...
I'd like to give this a try as I see some repetitive patterns in comments.
We can always disable the Herald rule again if it is not performant enough or does not catch enough cases.

Event Timeline

Aklapper created this task.
Aklapper moved this task from To Triage to Herald rules on the Phabricator board.

Done in {H414}

nettrom_WMF subscribed.

Reopening this because this regular expression:

[Hh]elp\sme\show\s((to\s)?get\sstarted)|(to\sstart\sthis)

Seems to match the phrase "to start this" anywhere in a sentence because of how the | have everything up to that point in the expression be one option, and the expression to the right be the other option (resulting in it matching T332441#8706754). If the expression is to match "help me how" followed by either "to get started" or "to start this" then adding another set of parentheses should lock the optionality, I think? For example:

[Hh]elp\sme\show\s(((to\s)?get\sstarted)|(to\sstart\sthis))

Hi and thank you for your interest! Please check thoroughly https://www.mediawiki.org/wiki/New_Developers (and all of its communication section!). The page covers how to get started, assigning tasks, task status, how to find a codebase, how to create patches, where to ask general development questions and where to get help with setup problems, and how to ask good questions. Thanks a lot! :)

Uhm, thanks. I've fixed that Herald condition by using your proposed regex.
(I'd love to limit this Herald rule to only apply to commenters who have new accounts. But Herald doesn't support that.)