Skip to content

Commit 8f8d46d

Browse files
committed
Build: define missing variable
1 parent ad3a9f1 commit 8f8d46d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/projects/tasks/builds.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def before_start(self, task_id, args, kwargs):
136136
self.data.version = self.get_version(version_id)
137137
self.data.project = self.data.version.project
138138

139+
# Also note there are builds that are triggered without a commit
140+
# because they just build the latest commit for that version
141+
self.data.build_commit = kwargs.get('build_commit')
142+
139143
log.bind(
140144
project_slug=self.data.project.slug,
141145
version_slug=self.data.version.slug,

0 commit comments

Comments
 (0)