Skip to content

Commit

Permalink
added progress
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Sep 14, 2024
1 parent 4dd6887 commit 7ec97f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@


def title_handler(context_dicts: _types.Context, context_objs: _types.Objects) -> list[str]:
if not re.match(r"^(bug|idea|implement|cleanup):\s*\S.*", context_objs.issue.title) and context_objs.sender.type == "User":
logger.info(f"Regex title doesn't match. {context_objs.issue.title} doesnt start with bug|idea|implement|cleanup:")
if not re.match(r"^(bug|idea|implement|cleanup|progress):\s*\S.*", context_objs.issue.title) and context_objs.sender.type == "User":
logger.info(f"Regex title doesn't match. {context_objs.issue.title} doesnt start with bug|idea|implement|cleanup|progress:")
logger.info(f"Commenting on {context_objs.issue.html_url}")
context_objs.issue.create_comment(
dedent(
f"""
Hi @{context_objs.sender.login},
You have chosen a title that is slightly different to our title standards. Please, if possible, use the format:
(bug, idea, implement or cleanup) : Title
(progress, bug, idea, implement or cleanup) : Title
e.g. "bug: xyz page doesn't work"
Expand Down

0 comments on commit 7ec97f9

Please sign in to comment.