MCPcopy Create free account
hub / github.com/ipython/ipython / post_issue_comment

Function post_issue_comment

tools/gh_api.py:84–87  ·  view source on GitHub ↗
(project, num, body)

Source from the content-addressed store, hash-verified

82 return {'Authorization': 'token ' + get_auth_token()}
83
84def 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
89def post_gist(content, description='', filename='file', auth=False):
90 """Post some text to a Gist, and return the URL."""

Callers

nothing calls this directly

Calls 2

make_auth_headerFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected