Commit a66c7fa6 authored by Lars Rustand's avatar Lars Rustand Committed by Lukas Fleischer
Browse files Use a/an correctly when sending request notifications

Will no longer send notifications about "a orphan request", but determine
whether to use a/an based on the first character of the request type.

Signed-off-by: default avatarLars Rustand <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 3ac958ac
......@@ -414,8 +414,9 @@ class RequestOpenNotification(Notification):
(self._user, self._pkgbase, self._merge_into)
body += '\n\n' + self._text
body = '%s [1] filed a %s request for %s [2]:' % \
(self._user, self._reqtype, self._pkgbase)
an = 'an' if self._reqtype[0] in 'aeiou' else 'a'
body = '%s [1] filed %s %s request for %s [2]:' % \
(self._user, an, self._reqtype, self._pkgbase)
body += '\n\n' + self._text
return body
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment