-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/13' into develop
- Loading branch information
Showing
9 changed files
with
724 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
LibHooks/lib/PreCommit/Filter/ShortCommitMsg/Parser/GitHub.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
namespace PreCommit\Filter\ShortCommitMsg\Parser; | ||
|
||
use PreCommit\Interpreter\InterpreterInterface; | ||
use PreCommit\Filter\ShortCommitMsg; | ||
|
||
/** | ||
* Class filter to parse short message | ||
* | ||
* @package PreCommit\Filter\ShortCommitMsg\GitHub | ||
*/ | ||
class GitHub | ||
extends ShortCommitMsg\Parser\Jira | ||
implements InterpreterInterface | ||
{ | ||
/** | ||
* Convert issue number to issue key | ||
* | ||
* Add project key to issue number when it did not set. | ||
* | ||
* @param string $issueNo | ||
* @return string | ||
* @throws \PreCommit\Exception | ||
*/ | ||
protected function _normalizeIssueKey($issueNo) | ||
{ | ||
return "#" . ltrim($issueNo, '#'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
namespace PreCommit\Issue; | ||
|
||
/** | ||
* Issue adapters exception class | ||
* | ||
* @package PreCommit\Issue | ||
*/ | ||
class Exception extends \PreCommit\Exception | ||
{ | ||
|
||
} |
Oops, something went wrong.