Skip to content

Commit

Permalink
Merge pull request #507 from cboyden/changelog-taskreplace
Browse files Browse the repository at this point in the history
Fix function name used by Changelog task
  • Loading branch information
greg-1-anderson committed Feb 3, 2017
2 parents ee6a3cc + ac55e3f commit 4c322ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Task/Development/Changelog.php
Expand Up @@ -167,13 +167,13 @@ function ($i) {

/** @var \Robo\Result $result */
// trying to append to changelog for today
$result = $this->collectionBuilder()->taskReplace($this->filename)
$result = $this->collectionBuilder()->taskReplaceInFile($this->filename)
->from($ver)
->to($text)
->run();

if (!isset($result['replaced']) || !$result['replaced']) {
$result = $this->collectionBuilder()->taskReplace($this->filename)
$result = $this->collectionBuilder()->taskReplaceInFile($this->filename)
->from($this->anchor)
->to($this->anchor . "\n\n" . $text)
->run();
Expand Down

0 comments on commit 4c322ed

Please sign in to comment.