diff --git a/.goreleaser.yml b/.goreleaser.yml index 8510efaa..4cba0521 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -42,7 +42,7 @@ brews: github: owner: Arkweid name: homebrew-lefthook - homepage: "https://github.com/Arkweid/lefthook" + homepage: "https://github.com/evilmartians/lefthook" description: "Lefthook a single dependency-free binary to manage all your git hooks that works with any language in any environment, and in all common team workflows" folder: Formula test: | @@ -61,7 +61,7 @@ brews: nfpms: - file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - homepage: https://github.com/Arkweid/lefthook + homepage: https://github.com/evilmartians/lefthook description: Lefthook a single dependency-free binary to manage all your git hooks that works with any language in any environment, and in all common team workflows maintainer: Alexander Abroskin license: MIT diff --git a/.npm/README.md b/.npm/README.md index aa867acf..08a64216 100644 --- a/.npm/README.md +++ b/.npm/README.md @@ -1,4 +1,4 @@ -![Build Status](https://api.travis-ci.org/Arkweid/lefthook.svg?branch=master) +![Build Status](https://api.travis-ci.org/evilmartians/lefthook.svg?branch=master) # Lefthook @@ -41,7 +41,7 @@ Choose your environment: * **[Ruby](./docs/ruby.md)** * [Other environments](./docs/other.md) -Then you can find all Lefthook features in [the full guide](./docs/full_guide.md) and explore [wiki](https://github.com/Arkweid/lefthook/wiki). +Then you can find all Lefthook features in [the full guide](./docs/full_guide.md) and explore [wiki](https://github.com/evilmartians/lefthook/wiki). *** @@ -178,23 +178,23 @@ $ lefthook run fixer * [Ruby](./docs/ruby.md) * [Other environments](./docs/other.md) * [Full features guide](./docs/full_guide.md) -* [Troubleshooting](https://github.com/Arkweid/lefthook/wiki/Troubleshooting) +* [Troubleshooting](https://github.com/evilmartians/lefthook/wiki/Troubleshooting) ### Migrate from -* [Husky](https://github.com/Arkweid/lefthook/wiki/Migration-from-husky) -* [Husky and lint-staged](https://github.com/Arkweid/lefthook/wiki/Migration-from-husky-with-lint-staged) -* [Overcommit](https://github.com/Arkweid/lefthook/wiki/Migration-from-overcommit) +* [Husky](https://github.com/evilmartians/lefthook/wiki/Migration-from-husky) +* [Husky and lint-staged](https://github.com/evilmartians/lefthook/wiki/Migration-from-husky-with-lint-staged) +* [Overcommit](https://github.com/evilmartians/lefthook/wiki/Migration-from-overcommit) ### Examples -* [Simple script](https://github.com/Arkweid/lefthook/tree/master/examples/scripts) -* [Full features](https://github.com/Arkweid/lefthook/tree/master/examples/complete) +* [Simple script](https://github.com/evilmartians/lefthook/tree/master/examples/scripts) +* [Full features](https://github.com/evilmartians/lefthook/tree/master/examples/complete) ### Benchmarks -* [vs Overcommit](https://github.com/Arkweid/lefthook/wiki/Benchmark-lefthook-vs-overcommit) -* [vs pre-commit](https://github.com/Arkweid/lefthook/wiki/Benchmark-lefthook-vs-pre-commit) +* [vs Overcommit](https://github.com/evilmartians/lefthook/wiki/Benchmark-lefthook-vs-overcommit) +* [vs pre-commit](https://github.com/evilmartians/lefthook/wiki/Benchmark-lefthook-vs-pre-commit) ### Comparison list -* [vs Overcommit, Husky, pre-commit](https://github.com/Arkweid/lefthook/wiki/Comparison-with-other-solutions) +* [vs Overcommit, Husky, pre-commit](https://github.com/evilmartians/lefthook/wiki/Comparison-with-other-solutions) ### Articles * [Lefthook: Knock your team’s code back into shape](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook) diff --git a/.rubygems/README.md b/.rubygems/README.md index fbeeb0aa..8fbd4035 100644 --- a/.rubygems/README.md +++ b/.rubygems/README.md @@ -1,3 +1,3 @@ # Lefthook -Ruby wrapper around [lefthook](https://github.com/Arkweid/lefthook) +Ruby wrapper around [lefthook](https://github.com/evilmartians/lefthook) diff --git a/.rubygems/lefthook.gemspec b/.rubygems/lefthook.gemspec index 7eb2598a..c56134ca 100644 --- a/.rubygems/lefthook.gemspec +++ b/.rubygems/lefthook.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |spec| spec.email = ["arkweid@evilmartians.com"] spec.summary = "A single dependency-free binary to manage all your git hooks that works with any language in any environment, and in all common team workflows." - spec.homepage = "https://github.com/Arkweid/lefthook" + spec.homepage = "https://github.com/evilmartians/lefthook" spec.post_install_message = "Lefthook installed! Run command in your project root directory 'lefthook install -f' to make installation completed." spec.bindir = "bin" diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ce84b6..5d81c7ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,87 +4,87 @@ # 0.7.2 (2020-02-02) -- [PR](https://github.com/Arkweid/lefthook/pull/126) Feature multiple extends. Thanks @Evilweed +- [PR](https://github.com/evilmartians/lefthook/pull/126) Feature multiple extends. Thanks @Evilweed -- [PR](https://github.com/Arkweid/lefthook/pull/124) Fix `npx` when only `yarn` exists. Thanks @dotterian +- [PR](https://github.com/evilmartians/lefthook/pull/124) Fix `npx` when only `yarn` exists. Thanks @dotterian -- [PR](https://github.com/Arkweid/lefthook/pull/116) Fix use '-h' for robust lefthook. Thanks @fahrinh +- [PR](https://github.com/evilmartians/lefthook/pull/116) Fix use '-h' for robust lefthook. Thanks @fahrinh # 0.7.1 (2020-02-02) -- [PR](https://github.com/Arkweid/lefthook/pull/108) Fix `sh` dependency on windows when executing `git`. Thanks @lionskape +- [PR](https://github.com/evilmartians/lefthook/pull/108) Fix `sh` dependency on windows when executing `git`. Thanks @lionskape -- [PR](https://github.com/Arkweid/lefthook/pull/103) Add possibility for using `yaml` and `yml` extension for config. Thanks @rbUUbr +- [PR](https://github.com/evilmartians/lefthook/pull/103) Add possibility for using `yaml` and `yml` extension for config. Thanks @rbUUbr # 0.7.0 (2019-12-14) -- [PR](https://github.com/Arkweid/lefthook/pull/98) Support relative roots for monorepos. Thanks @jsmestad +- [PR](https://github.com/evilmartians/lefthook/pull/98) Support relative roots for monorepos. Thanks @jsmestad # 0.6.7 (2019-12-14) -- [Commit](https://github.com/Arkweid/lefthook/commit/e898b5c8ba56c4d6f29a4d1f433baa1779a0845b) +- [Commit](https://github.com/evilmartians/lefthook/commit/e898b5c8ba56c4d6f29a4d1f433baa1779a0845b) Skip before executing command -- [PR](https://github.com/Arkweid/lefthook/pull/94) Add option --keep-config. Thanks @justinasposiunas +- [PR](https://github.com/evilmartians/lefthook/pull/94) Add option --keep-config. Thanks @justinasposiunas -- [Commit](https://github.com/Arkweid/lefthook/commit/d79a3a46e7d1ee709b97e97f823bfd27e9466eff) +- [Commit](https://github.com/evilmartians/lefthook/commit/d79a3a46e7d1ee709b97e97f823bfd27e9466eff) Check if shell is non interactive # 0.6.6 (2019-12-03) -- [PR](https://github.com/Arkweid/lefthook/pull/94) Use eval instead of exec; Enable tty for the shell. Thanks @ssnickolay +- [PR](https://github.com/evilmartians/lefthook/pull/94) Use eval instead of exec; Enable tty for the shell. Thanks @ssnickolay # 0.6.5 (2019-11-15) -- [PR](https://github.com/Arkweid/lefthook/pull/89) Add support for git-worktree. Thanks @f440 +- [PR](https://github.com/evilmartians/lefthook/pull/89) Add support for git-worktree. Thanks @f440 -- [Commit](https://github.com/Arkweid/lefthook/commit/48702a0806d2b2eab13636ba56b0e0b99f346f1c) +- [Commit](https://github.com/evilmartians/lefthook/commit/48702a0806d2b2eab13636ba56b0e0b99f346f1c) Commands and Scripts now can catch Stdin -- [Commit](https://github.com/Arkweid/lefthook/commit/9a226842292ff1dda0f2273b66a0799988aa5289) +- [Commit](https://github.com/evilmartians/lefthook/commit/9a226842292ff1dda0f2273b66a0799988aa5289) Add partial support for monorepos and command execution not from project root # 0.6.4 (2019-11-08) -- [PR](https://github.com/Arkweid/lefthook/pull/84) Fix return value from shell exit. Thanks @HaiD84 +- [PR](https://github.com/evilmartians/lefthook/pull/84) Fix return value from shell exit. Thanks @HaiD84 -- [PR](https://github.com/Arkweid/lefthook/pull/86) Support postinstall script for npm installation for monorepos. Thanks @sHooKDT +- [PR](https://github.com/evilmartians/lefthook/pull/86) Support postinstall script for npm installation for monorepos. Thanks @sHooKDT -- [PR](https://github.com/Arkweid/lefthook/pull/82) Now relative path to scripts supported. Thanks @AlexeyMatskevich +- [PR](https://github.com/evilmartians/lefthook/pull/82) Now relative path to scripts supported. Thanks @AlexeyMatskevich -- [Commit](https://github.com/Arkweid/lefthook/pull/80/commits/1a4b0ee155eb66ae6f3c365164012bee9332605a) +- [Commit](https://github.com/evilmartians/lefthook/pull/80/commits/1a4b0ee155eb66ae6f3c365164012bee9332605a) Option `extends` for top level config added. Now you can merge some settings from different places: ```yml extends: $HOME/work/lefthook-extend.yml ``` -- [Commit](https://github.com/Arkweid/lefthook/commit/83cf818106dbf222ea33ba86aafce8f30d7cb5a9) +- [Commit](https://github.com/evilmartians/lefthook/commit/83cf818106dbf222ea33ba86aafce8f30d7cb5a9) Add examples to generated lefthook.yml ## 0.6.3 (2019-07-15) -- [Commit](https://github.com/Arkweid/lefthook/commit/0426936f48f248221126f15619932b0dc8c54d7a) Add `-a` means `aggressive` strategy for `install` command +- [Commit](https://github.com/evilmartians/lefthook/commit/0426936f48f248221126f15619932b0dc8c54d7a) Add `-a` means `aggressive` strategy for `install` command ```bash lefthook install -a # clear .git/hooks dir and reinstall lefthook hooks ``` -- [Commit](https://github.com/Arkweid/lefthook/commit/5efb0677a4a9ec1728d3cf1a083075e23315a796) Add Lefthook version indicator for commands and script execution +- [Commit](https://github.com/evilmartians/lefthook/commit/5efb0677a4a9ec1728d3cf1a083075e23315a796) Add Lefthook version indicator for commands and script execution -- [Commit](https://github.com/Arkweid/lefthook/commit/8b55d91eed46643a1674bd4ad96fa211a177e159) Remove `npx` as dependency from node wrapper +- [Commit](https://github.com/evilmartians/lefthook/commit/8b55d91eed46643a1674bd4ad96fa211a177e159) Remove `npx` as dependency from node wrapper Now we will call directly binary from `./node_modules` -- [Commit](https://github.com/Arkweid/lefthook/commit/76ffed4c698bc074984e91f5610c0b98784bd10b) Add `-f` means `force` strategy for `install` command +- [Commit](https://github.com/evilmartians/lefthook/commit/76ffed4c698bc074984e91f5610c0b98784bd10b) Add `-f` means `force` strategy for `install` command ```bash lefthook install -f # reinstall lefthook hooks without sync info check ``` -- PR [#27](https://github.com/Arkweid/lefthook/pull/27) Move LEFTHOOK env check in hooks files +- PR [#27](https://github.com/evilmartians/lefthook/pull/27) Move LEFTHOOK env check in hooks files Now if LEFTHOOK=0 we will not call the binary file -- PR [#26](https://github.com/Arkweid/lefthook/pull/26) + [commit](https://github.com/Arkweid/lefthook/commit/afd67f94631a10975209ed4c5fabc763f44280eb) Add `{push_files}` shortcut +- PR [#26](https://github.com/evilmartians/lefthook/pull/26) + [commit](https://github.com/evilmartians/lefthook/commit/afd67f94631a10975209ed4c5fabc763f44280eb) Add `{push_files}` shortcut Add shortcut `{push_files}` @@ -103,7 +103,7 @@ pre-commit: run: rubocop {push_files} ``` -- [Commit](https://github.com/Arkweid/lefthook/commit/af087b032a14952aa1dd235a3d0b5a51bc760a10) Add `min_version` option +- [Commit](https://github.com/evilmartians/lefthook/commit/af087b032a14952aa1dd235a3d0b5a51bc760a10) Add `min_version` option You can mark your config for minimum Lefthook version: ``` @@ -127,7 +127,7 @@ Will be executed in this way: sh -c "rubocop -a && git add" ``` -- PR [#23](https://github.com/Arkweid/lefthook/pull/24) Search Lefthook in Gemfile. +- PR [#23](https://github.com/evilmartians/lefthook/pull/24) Search Lefthook in Gemfile. Now it's possible to use Lefthook from Gemfile. diff --git a/README.md b/README.md index 0a220882..b7d5bf35 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Build Status](https://api.travis-ci.org/Arkweid/lefthook.svg?branch=master) +![Build Status](https://api.travis-ci.org/evilmartians/lefthook.svg?branch=master) # Lefthook @@ -41,7 +41,7 @@ Choose your environment: * **[Ruby](./docs/ruby.md)** * [Other environments](./docs/other.md) -Then you can find all Lefthook features in [the full guide](./docs/full_guide.md) and explore [wiki](https://github.com/Arkweid/lefthook/wiki). +Then you can find all Lefthook features in [the full guide](./docs/full_guide.md) and explore [wiki](https://github.com/evilmartians/lefthook/wiki). *** @@ -185,23 +185,23 @@ skip_output: * [Ruby](./docs/ruby.md) * [Other environments](./docs/other.md) * [Full features guide](./docs/full_guide.md) -* [Troubleshooting](https://github.com/Arkweid/lefthook/wiki/Troubleshooting) +* [Troubleshooting](https://github.com/evilmartians/lefthook/wiki/Troubleshooting) ### Migrate from -* [Husky](https://github.com/Arkweid/lefthook/wiki/Migration-from-husky) -* [Husky and lint-staged](https://github.com/Arkweid/lefthook/wiki/Migration-from-husky-with-lint-staged) -* [Overcommit](https://github.com/Arkweid/lefthook/wiki/Migration-from-overcommit) +* [Husky](https://github.com/evilmartians/lefthook/wiki/Migration-from-husky) +* [Husky and lint-staged](https://github.com/evilmartians/lefthook/wiki/Migration-from-husky-with-lint-staged) +* [Overcommit](https://github.com/evilmartians/lefthook/wiki/Migration-from-overcommit) ### Examples -* [Simple script](https://github.com/Arkweid/lefthook/tree/master/examples/scripts) -* [Full features](https://github.com/Arkweid/lefthook/tree/master/examples/complete) +* [Simple script](https://github.com/evilmartians/lefthook/tree/master/examples/scripts) +* [Full features](https://github.com/evilmartians/lefthook/tree/master/examples/complete) ### Benchmarks -* [vs Overcommit](https://github.com/Arkweid/lefthook/wiki/Benchmark-lefthook-vs-overcommit) -* [vs pre-commit](https://github.com/Arkweid/lefthook/wiki/Benchmark-lefthook-vs-pre-commit) +* [vs Overcommit](https://github.com/evilmartians/lefthook/wiki/Benchmark-lefthook-vs-overcommit) +* [vs pre-commit](https://github.com/evilmartians/lefthook/wiki/Benchmark-lefthook-vs-pre-commit) ### Comparison list -* [vs Overcommit, Husky, pre-commit](https://github.com/Arkweid/lefthook/wiki/Comparison-with-other-solutions) +* [vs Overcommit, Husky, pre-commit](https://github.com/evilmartians/lefthook/wiki/Comparison-with-other-solutions) ### Articles * [Lefthook: Knock your team’s code back into shape](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook) diff --git a/cmd/install.go b/cmd/install.go index 784f5bd4..cb55419a 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -73,7 +73,7 @@ func InstallCmdExecutor(args []string, fs afero.Fs) { func AddConfigYaml(fs afero.Fs) { template := `# EXAMPLE USAGE # Refer for explanation to following link: -# https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md +# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md # # pre-push: # commands: diff --git a/cmd/run.go b/cmd/run.go index 9342b92e..2de5890a 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -18,7 +18,7 @@ import ( "sync" "time" - "github.com/Arkweid/lefthook/context" + "github.com/evilmartians/lefthook/context" arrop "github.com/adam-hanna/arrayOperations" "github.com/creack/pty" diff --git a/cmd/run_windows.go b/cmd/run_windows.go index d0075d68..1d099c9b 100644 --- a/cmd/run_windows.go +++ b/cmd/run_windows.go @@ -17,7 +17,7 @@ import ( "sync" "time" - "github.com/Arkweid/lefthook/context" + "github.com/evilmartians/lefthook/context" arrop "github.com/adam-hanna/arrayOperations" "github.com/gobwas/glob" diff --git a/docs/full_guide.md b/docs/full_guide.md index 8033b428..f53de649 100644 --- a/docs/full_guide.md +++ b/docs/full_guide.md @@ -5,7 +5,7 @@ Add Lefthook to your system or build it from sources. ### go ```bash -go get github.com/Arkweid/lefthook +go get github.com/evilmartians/lefthook ``` ### npm @@ -27,20 +27,20 @@ gem install lefthook ### Homebrew for macOS ```bash -brew install Arkweid/lefthook/lefthook +brew install evilmartians/lefthook/lefthook ``` ### AUR for Arch You can install lefthook [package](https://aur.archlinux.org/packages/lefthook) from AUR -Or take it from [binaries](https://github.com/Arkweid/lefthook/releases) and install manually +Or take it from [binaries](https://github.com/evilmartians/lefthook/releases) and install manually ## Scenarios ### Examples -We have a directory with few examples. You can check it [here](https://github.com/Arkweid/lefthook/tree/master/examples). +We have a directory with few examples. You can check it [here](https://github.com/evilmartians/lefthook/tree/master/examples). ### First time user @@ -497,4 +497,4 @@ lefthook uninstall ``` ## More info -Have a question? Check the [wiki](https://github.com/Arkweid/lefthook/wiki). +Have a question? Check the [wiki](https://github.com/evilmartians/lefthook/wiki). diff --git a/docs/node.md b/docs/node.md index a61bf080..a3531c8a 100644 --- a/docs/node.md +++ b/docs/node.md @@ -34,4 +34,4 @@ npx lefthook install && npx lefthook run pre-commit ``` ### More info -Have a question? Check the [wiki](https://github.com/Arkweid/lefthook/wiki). +Have a question? Check the [wiki](https://github.com/evilmartians/lefthook/wiki). diff --git a/docs/other.md b/docs/other.md index 4cc1aec6..7f71ef57 100644 --- a/docs/other.md +++ b/docs/other.md @@ -9,20 +9,20 @@ Add Lefthook to your system or build it from source. ### go ```bash -go get github.com/Arkweid/lefthook +go get github.com/evilmartians/lefthook ``` ### Homebrew for macOS ```bash -brew install Arkweid/lefthook/lefthook +brew install evilmartians/lefthook/lefthook ``` ### AUR for Arch You can install lefthook [package](https://aur.archlinux.org/packages/lefthook) from AUR -Or take it from [binaries](https://github.com/Arkweid/lefthook/releases) and install manually +Or take it from [binaries](https://github.com/evilmartians/lefthook/releases) and install manually ### pip for Python @@ -50,4 +50,4 @@ lefthook install && lefthook run pre-commit ``` ### More info -Have a question? Check the [wiki](https://github.com/Arkweid/lefthook/wiki). +Have a question? Check the [wiki](https://github.com/evilmartians/lefthook/wiki). diff --git a/docs/ruby.md b/docs/ruby.md index 78269efc..a3d92f4e 100644 --- a/docs/ruby.md +++ b/docs/ruby.md @@ -33,4 +33,4 @@ lefthook install && lefthook run pre-commit If you see the error `lefthook: command not found` you need to check your $PATH. Also try to restart your terminal. ### More info -Have a question? Check the [wiki](https://github.com/Arkweid/lefthook/wiki). +Have a question? Check the [wiki](https://github.com/evilmartians/lefthook/wiki). diff --git a/go.mod b/go.mod index 13ba849c..11e441d9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Arkweid/lefthook +module github.com/evilmartians/lefthook require ( github.com/Arkweid/hookah v0.2.3 // indirect diff --git a/main.go b/main.go index d772cc36..78c232b8 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "github.com/Arkweid/lefthook/cmd" +import "github.com/evilmartians/lefthook/cmd" func main() { cmd.Execute()