Get the Github commit comment with id.

Returns null if the comment cannot be found.

var api = new GithubAPI(get_github_oauth)
var repo = api.get_repo("nitlang/nit")
assert repo != null
var comment = api.get_commit_comment(repo, 8982707)
assert comment.user.login == "Morriar"
assert comment.body == "For testing purposes...\n"
assert comment.commit_id == "7eacb86d1e24b7e72bc9ac869bf7182c0300ceca"

Property definitions

github $ GithubAPI :: get_commit_comment
	# Get the Github commit comment with `id`.
	#
	# Returns `null` if the comment cannot be found.
	#
	# ~~~nitish
	# var api = new GithubAPI(get_github_oauth)
	# var repo = api.get_repo("nitlang/nit")
	# assert repo != null
	# var comment = api.get_commit_comment(repo, 8982707)
	# assert comment.user.login == "Morriar"
	# assert comment.body == "For testing purposes...\n"
	# assert comment.commit_id == "7eacb86d1e24b7e72bc9ac869bf7182c0300ceca"
	# ~~~
	fun get_commit_comment(repo_slug: String, id: Int): nullable CommitComment do
		return get("/repos/{repo_slug}/comments/{id}").as(nullable CommitComment)
	end
lib/github/api.nit:416,2--431,4