Skip to content

Commit 65a2171

Browse files
committed
aicommit 0.6.3 (new formula)
1 parent 38a63f1 commit 65a2171

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Formula/a/aicommit.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class Aicommit < Formula
2+
desc "AI-powered commit message generator"
3+
homepage "https://github.com/coder/aicommit"
4+
url "https://github.com/coder/aicommit/archive/refs/tags/v0.6.3.tar.gz"
5+
sha256 "f42fac51fbe334f4d4057622b152eff168f4aa28d6da484af1cea966abd836a1"
6+
license "CC0-1.0"
7+
8+
depends_on "go"
9+
10+
def install
11+
system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=v#{version}"), "./cmd/aicommit"
12+
end
13+
14+
test do
15+
assert_match "aicommit v#{version}", shell_output("#{bin}/aicommit version")
16+
17+
system "git", "init", "--bare", "."
18+
assert_match "err: $OPENAI_API_KEY is not set", shell_output("#{bin}/aicommit 2>&1", 1)
19+
end
20+
end

0 commit comments

Comments
 (0)