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
Richard Patel 2022-07-15 10:40:14 +02:00 committed by BrewTestBot
parent dbe03ef50c
commit 9a8935a86d
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 19 additions and 0 deletions

19
Formula/git-codereview.rb Normal file
View File

@ -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