def post_gist(report_data, old_sha, new_sha):
payload = {<EOL>"<STR_LIT:description>": ("<STR_LIT>"<EOL>"<STR_LIT>".format(old_sha, new_sha)),<EOL>"<STR_LIT>": True,<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>".format(old_sha, new_sha): {<EOL>"<STR_LIT:content>": report_data<EOL>}<EOL>}<EOL>}<EOL>url = "<STR_LIT>"<EOL>r = requests.post(url, data=json.dumps(payload))<EOL>response = r.json()<EOL>return response['<STR_LIT>']<EOL>
Post the report to a GitHub Gist and return the URL of the gist.