From e5951384695fe6738f620d5d15f42acbb25fad41 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Fri, 3 Jan 2025 05:35:13 -0800 Subject: [PATCH] releaser/tap: Install completions (#540) Sets up the Homebrew tap to also install shell completions generated from the `gs` executable. --- .changes/unreleased/Added-20250103-052535.yaml | 3 +++ .goreleaser.yml | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .changes/unreleased/Added-20250103-052535.yaml diff --git a/.changes/unreleased/Added-20250103-052535.yaml b/.changes/unreleased/Added-20250103-052535.yaml new file mode 100644 index 00000000..cc5944e0 --- /dev/null +++ b/.changes/unreleased/Added-20250103-052535.yaml @@ -0,0 +1,3 @@ +kind: Added +body: The Homebrew tap will now install shell completions automatically. +time: 2025-01-03T05:25:35.890095-08:00 diff --git a/.goreleaser.yml b/.goreleaser.yml index f31fd7ca..e7155c51 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -68,6 +68,9 @@ brews: description: "A tool for stacking Git branches." license: "GPL-3.0-or-later" skip_upload: auto + install: | + bin.install "gs" + generate_completions_from_executable(bin/"gs", "shell", "completion") test: | system "#{bin}/gs --version"