Skip to content

Commit ef39c32

Browse files
committed
Add commit to build failure
1 parent edd0fe3 commit ef39c32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/projects/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,12 +667,13 @@ def email_notification(project, build, email):
667667
msg='sending email to: %s' % email))
668668
context = {'project': project.name,
669669
'build_id': build.pk,
670+
'commit': build.commit,
670671
'build_url': 'https://{0}{1}'.format(
671672
getattr(settings, 'PRODUCTION_DOMAIN', 'readthedocs.org'),
672673
build.get_absolute_url())}
673674
send_email(
674675
email,
675-
_('Failed: {project}').format(**context),
676+
_('Failed: {project} ({commit})').format(**context),
676677
template='projects/email/build_failed.txt',
677678
template_html='projects/email/build_failed.html',
678679
context=context

0 commit comments

Comments
 (0)