git-codereview 1.0.3 (new formula)
Closes #105865. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
dbe03ef50c
commit
9a8935a86d
|
@ -0,0 +1,19 @@
|
|||
class GitCodereview < Formula
|
||||
desc "Tool for working with Gerrit code reviews"
|
||||
homepage "https://pkg.go.dev/golang.org/x/review/git-codereview"
|
||||
url "https://github.com/golang/review/archive/refs/tags/v1.0.3.tar.gz"
|
||||
sha256 "b79b296bc2794dad15aefff8f095ab475422377010ac6546fe30c7dea4306cc1"
|
||||
license "BSD-3-Clause"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
system "go", "build", *std_go_args, "./git-codereview"
|
||||
end
|
||||
|
||||
test do
|
||||
system "git", "init"
|
||||
system "git", "codereview", "hooks"
|
||||
assert_match "git-codereview hook-invoke", (testpath/".git/hooks/commit-msg").read
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue