Skip to content

Commit

Permalink
fix #8 remove starting and ending spaces (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia authored Jun 14, 2024
1 parent df90b47 commit 7870fe5
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)
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 7870fe5

Please sign in to comment.