Skip to content

Commit

Permalink
Use regex for auto-generated MS searches.
Browse files Browse the repository at this point in the history
Add "body_is_regex=1" to the MS searches that SmokeDetector
automatically creates for new PRs. Should resolve
[Charcoal-SE#10228](Charcoal-SE#10228).
  • Loading branch information
Andrew5057 committed Nov 21, 2024
1 parent a92225a commit 8e876df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gitmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ def add_to_blacklist(cls, blacklist='', item_to_blacklist='', username='', chat_

payload = {"title": "{0}: {1} {2}".format(username, op.title(), item),
"body": "[{0}]({1}) requests the {2} of the {3} `{4}`. See the MS search [here]"
"(https://metasmoke.erwaysoftware.com/search?utf8=%E2%9C%93{5}{6}) and the "
"Stack Exchange search [in text](https://stackexchange.com/search?q=%22{7}%22)"
"(https://metasmoke.erwaysoftware.com/search?utf8=%E2%9C%93&body_is_regex=1{5}{6}) "
"and the Stack Exchange search "
"[in text](https://stackexchange.com/search?q=%22{7}%22)"
", [in URLs](https://stackexchange.com/search?q=url%3A%22{7}%22)"
", and [in code](https://stackexchange.com/search?q=code%3A%22{7}%22)"
".\n"
Expand Down

0 comments on commit 8e876df

Please sign in to comment.