Skip to content

Commit

Permalink
chore(goreleaser): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lvrach committed Oct 16, 2024
1 parent 69ab0cd commit db67de9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 125 deletions.
42 changes: 2 additions & 40 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ brews:
# Templates: allowed.
name: git-hooks


# Headers to include in the `url` stanza.
# This can be a more modern alternative to `download_strategy` in some
# cases.
Expand All @@ -68,15 +67,10 @@ brews:
download_strategy: CurlDownloadStrategy


# Git author used to commit to the repository.
commit_author:
name: goreleaserbot
email: [email protected]

# The project name and current git tag are used in the format string.
#
# Templates: allowed.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
commit_msg_template: "chore(brew): update formula for {{ .ProjectName }} version {{ .Tag }}"

# Directory inside the repository to put the formula.
directory: Formula
Expand All @@ -100,28 +94,16 @@ brews:
# Packages your package depends on.
dependencies:
- name: git
# Allow to specify the OS in which the dependency is required.
# Valid options are `mac` and `linux`.
os: mac
- name: zsh
- name: gitleaks
type: optional



# So you can `brew test` your formula.
#
# Template: allowed
test: |
system "#{bin}/git-hooks"
# Additional install instructions so you don't need to override `install`.
#
# Template: allowed
extra_install: |
bash_completion.install "completions/foo.bash" => "foo"
# Repository to push the generated files to.
repository:
# Repository owner.
Expand All @@ -142,23 +124,3 @@ brews:


token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"

# Sets up pull request creation instead of just pushing to the given branch.
# Make sure the 'branch' property is different from base before enabling
# it.
#
# This might require a personal access token.
pull_request:
# Whether to enable it or not.
enabled: true

# Whether to open the PR as a draft or not.
draft: true


# Base can also be another repository, in which case the owner and name
# above will be used as HEAD, allowing cross-repository pull requests.
base:
owner: lvrach
name: homebrew-tap
branch: main
78 changes: 0 additions & 78 deletions Formula/git-hooks.rb

This file was deleted.

8 changes: 1 addition & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ import (

func main() {
app := &cli.App{
Name: "git-hooks-manager",
Name: "git-hooks",
Usage: "Manage and execute Git hooks",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "configure",
Usage: "Configure Git to use this tool for hooks",
},
},
Commands: []*cli.Command{
commands.Config,
commands.Implode,
Expand Down

0 comments on commit db67de9

Please sign in to comment.