Skip to content

Commit

Permalink
Fix: allow dash in usernames in PR title linting @geminixiang (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
geminixiang authored Jun 18, 2024
1 parent e67380e commit a0e77d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pr_lint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def lint(pr: PullRequest) -> None:
pr: The pull request to lint
"""

pr_owners = re.findall(r"(@[\w]+)$", pr.title.strip())
pr_owners = re.findall(r"(@[\w-]+)$", pr.title.strip())
assert pr_owners, "PR title should end with a GitHub username"
# FIXME: for some reason the has_in_collaborators method is not working
# pr_owner = pr_owners[0][1:]
Expand Down

0 comments on commit a0e77d8

Please sign in to comment.