apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/commits/{commit_sha}/comments — GitHub API

GitHub playground

Create a commit comment

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

4 body fields
  • body · required · string — The contents of the comment.
  • path · optional · string — Relative path of the file to comment on.
  • position · optional · integer — Line index in the diff to comment on.
  • line · optional · integer — **Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.