From f099d4402185565adbbca81a9598ed2cf08e346e Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 21 Oct 2019 20:09:38 +0200 Subject: [PATCH] Add `GitHub::create_check_run` function. --- Library/Homebrew/utils/github.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 681efa3943..023218f786 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -271,6 +271,10 @@ module GitHub open_api(url_to("repos", repo, "commits", commit, "check-runs")) end + def create_check_run(repo:, data:) + open_api(url_to("repos", repo, "check-runs"), data: data) + end + def search_issues(query, **qualifiers) search("issues", query, **qualifiers) end