Skip to content

Commit

Permalink
- Updated version.
Browse files Browse the repository at this point in the history
- Updated README.md.
  • Loading branch information
andkirby committed Feb 18, 2015
1 parent 938aa82 commit 18e7dd3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LibHooks/config.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config>
<version>1.6.7</version>
<version>1.6.8</version>
<supported_hooks>
<hook>pre-commit</hook>
<hook>commit-msg</hook>
Expand Down
2 changes: 1 addition & 1 deletion LibHooks/lib/PreCommit/Composer/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Application extends BaseApplication
*
* @see LibHooks/config.xml
*/
const VERSION = '1.6.7';
const VERSION = '1.6.8';

/**
* Logo
Expand Down
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,33 @@ In such case it will merge all files in the XML node "additional_config". There
- PROJECT_DIR/commithook-self.xml (it may contain a project specific configuration which shouldn't shared to your team)
The last one can be added into a project and might be used by all developers. PROJECT_DIR - is your project directory where from CommitHOOK has been run.

# Release notes
## Features
### Skip Method Name Validation
To skip validation of methods name just add PHPDoc block tag @skipHookMethodNaming like following:

```php
/**
* My method
*
* @skipCommitHookMethodNaming myMethod
*/
protected function myMethod()
{
//...
}
```

### Skip Code Block Full Validation
Also you may skip validation fully for a particular code block:

```php
//@startSkipCommitHooks
$a=function($b){return $b};
//@finishSkipCommitHooks
```

## Release notes
- v1.6.8 Improved skipping methods name validation. Added new tag @skipHookMethodNaming.
- v1.6.7 Added supporting numbers in the issue project key in commit message.
- v1.6.6 Added PHP version of bin file (you may run all commands via `php commithook.php`). Added extra "complete" messages on "verbose" mode to the "remove" command.
- v1.6.5 Added new options command `--php-binary|-b` and `--project-dir|-d`. Improved PHP file validator.
Expand Down

0 comments on commit 18e7dd3

Please sign in to comment.