Skip to content

Commit

Permalink
Refresh
Browse files Browse the repository at this point in the history
Changes:
- dependencies updated
- code cleanup
- readme update
- chmod arg fixed
- feature: temporary disable with env var

Signed-off-by: Adrian Juszczak <[email protected]>
  • Loading branch information
Juszczak committed Nov 21, 2018
1 parent e7a8e27 commit 6de2654
Show file tree
Hide file tree
Showing 9 changed files with 2,399 additions and 1,688 deletions.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"printWidth": 140,
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"bracketSpacing": false,
"parser": "typescript"
}
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@
export GIT_JIRA_URL=your_jira_hostname_with_port
```

# Uninstall
Run `./uninstall path/to/project/root`

# Usage
The tool uses [prepare-commit-msg](https://git-scm.com/docs/githooks#_prepare_commit_msg) hook,
so all you need to do is just `git commit` as usual.

> For performance purposes, the script fetches only *unresolved* issues *assigned to the current user*
> For performance purposes, the script fetches only issues *assigned to the current user*
# Uninstall
Run `./uninstall path/to/project/root`
# Disable
Set `DISABLE_GIT_JIRA` env variable

```
DISABLE_GIT_JIRA=true git commit
```
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ const build = () => webpack(webpackConfig).run((err, stats) => err ? throwError(
const copyFiles = (path) => {
createReadStream(resolve('./dist/prepare-commit-msg'))
.pipe(createWriteStream(gitHookPath));
chmodSync(gitHookPath, 0755);
chmodSync(gitHookPath, '0755');
}
path ? build() : throwError('no project path specified');
Loading

0 comments on commit 6de2654

Please sign in to comment.