(project, num, body)
| 82 | return {'Authorization': 'token ' + get_auth_token()} |
| 83 | |
| 84 | def post_issue_comment(project, num, body): |
| 85 | url = 'https://api.github.com/repos/{project}/issues/{num}/comments'.format(project=project, num=num) |
| 86 | payload = json.dumps({'body': body}) |
| 87 | requests.post(url, data=payload, headers=make_auth_header()) |
| 88 | |
| 89 | def post_gist(content, description='', filename='file', auth=False): |
| 90 | """Post some text to a Gist, and return the URL.""" |
nothing calls this directly
no test coverage detected