1 parent
d2bece68e5
commit
3c0ae866e0
2 files changed
+25
No files matched your search
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 1.4.4 - 2017-07-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Robo task to update header version and tag in Git
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- version in header
|
||||||
|
|
||||||
## 1.4.3 - 2017-06-28
|
## 1.4.3 - 2017-06-28
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -77,6 +77,23 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
$mustache->loadTemplate( 'laps' );
|
$mustache->loadTemplate( 'laps' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates version in header and makes git version tag.
|
||||||
|
*
|
||||||
|
* @param string $version Version string.
|
||||||
|
*/
|
||||||
|
public function tag( $version ) {
|
||||||
|
|
||||||
|
$this->versionSet( $version );
|
||||||
|
|
||||||
|
$this->taskGitStack()
|
||||||
|
->stopOnFail()
|
||||||
|
->add( 'laps.php' )
|
||||||
|
->commit( "Updated header version to {$version}" )
|
||||||
|
->tag( $version )
|
||||||
|
->run();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the plugin version in header.
|
* Sets the plugin version in header.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in new issue
Block a user