Skip to content

Commit e396751

Browse files
author
Konstantin Gredeskoul
committed
Adding setup to README; symlink pre-commit hook
1 parent ebccafc commit e396751

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313

1414
<!-- /TOC -->
1515

16+
# Setup
17+
18+
To get the initial stuff setup required by this repo, please run the script:
19+
20+
```bash
21+
bin/setup
22+
```
23+
24+
Whenever you'll commit something, a pre-commit hook will run as well.
25+
1626
# Rules Ruby
1727

1828
[![Build Status](https://travis-ci.org/bazelruby/rules_ruby.svg?branch=master)](https://travis-ci.org/bazelruby/rules_ruby)

bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ inherit_gem:
2323
run "git add .rubocop.yml"
2424
}
2525

26-
26+
[[ -L .git/hooks/pre-commit ]] || run "ln -nfs bin/pre-commit .git/hooks/pre-commit"
2727

0 commit comments

Comments
 (0)