Get the Github label with name.

Returns null if the label cannot be found.

var api = new GithubAPI(get_github_oauth)
var repo = api.get_repo("nitlang/nit")
assert repo != null
var labl = api.get_label(repo, "ok_will_merge")
assert labl != null

Property definitions

github $ GithubAPI :: get_label
	# Get the Github label with `name`.
	#
	# Returns `null` if the label cannot be found.
	#
	# ~~~nitish
	# var api = new GithubAPI(get_github_oauth)
	# var repo = api.get_repo("nitlang/nit")
	# assert repo != null
	# var labl = api.get_label(repo, "ok_will_merge")
	# assert labl != null
	# ~~~
	fun get_label(repo_slug: String, name: String): nullable Label do
		return get("/repos/{repo_slug}/labels/{name}").as(nullable Label)
	end
lib/github/api.nit:367,2--380,4