def draft_github_comment(template, result):
	"""
	Use a template to draft a GitHub comment
		:template: (str) the name of the template file
		:result: (ContentError) the error to display in the comment
	"""
	# start with template
	with open(template, 'r') as f:
		contents = f.read()

	# replace variables in template with ContentError values
	for var in vars(result).keys():
		contents = contents.replace(f'{{{{ {var} }}}}', str(getattr(result, var)))

	return contents