We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7647ace commit ece77f7Copy full SHA for ece77f7
github-merge.py
@@ -89,8 +89,9 @@ def sanitize_ghdata(rec):
89
rec['user'] = {'login': '[deleted]'}
90
else:
91
# "Github username may only contain alphanumeric characters or hyphens'.
92
+ # Sometimes bot have a "[bot]" suffix in the login, so we also match for that
93
# Use \Z instead of $ to not match final newline only end of string.
- if not re.match('[a-zA-Z0-9-]+\Z', rec['user']['login'], re.DOTALL):
94
+ if not re.match('[a-zA-Z0-9-]+(\[bot\])?\Z', rec['user']['login'], re.DOTALL):
95
raise ValueError('Github username contains invalid characters: {}'.format(sanitize(rec['user']['login'])))
96
return rec
97
0 commit comments