RoboFile.php
public function bltRelease(
    $tag,
    $github_token,
    $options = [
      'prev-tag' => NULL,
    ]
  ) {
    $this->stopOnFail();
    $current_branch = $this->getCurrentBranch();
    $this->checkDirty();
    $this->printReleasePreamble($tag, $current_branch);
    $this->assertBranchMatchesUpstream($current_branch);
    $this->resetLocalBranch($current_branch);
    $this->updateBltVersionConstant($tag);
    $prev_tag = $this->getPrevTag($options, $current_branch);
    $release_notes = $this->generateReleaseNotes($prev_tag, $tag, $github_token);
    $this->updateChangelog($tag, $release_notes);

    // Push the change upstream.
    $this->_exec("git add CHANGELOG.md $this->bltRoot/src/Robo/Blt.php");
    $this->_exec("git commit -m 'Updating CHANGELOG.md and setting version for $tag.' -n");
    $this->_exec("git push upstream $current_branch");
    $this->createGitHubRelease($current_branch, $tag, $release_notes, $github_token);

    return 0;
  }
public function bltRelease(
    $tag,
    $github_token,
    $options = [
      'prev-tag' => NULL,
    ]
  ) {
    $this->stopOnFail();
    $current_branch = $this->getCurrentBranch();
    $this->checkDirty();
    $this->printReleasePreamble($tag, $current_branch);
    $this->assertBranchMatchesUpstream($current_branch);
    $this->resetLocalBranch($current_branch);
    $this->updateBltVersionConstant($tag);
    $prev_tag = $this->getPrevTag($options, $current_branch);
    $release_notes = $this->generateReleaseNotes($prev_tag, $tag, $github_token);
    $this->updateChangelog($tag, $release_notes);

    // Push the change upstream.
    $this->_exec("git add CHANGELOG.md $this->bltRoot/src/Robo/Blt.php");
    $this->_exec("git commit -m 'Updating CHANGELOG.md and setting version for $tag.' -n");
    $this->_exec("git push upstream $current_branch");
    $this->createGitHubRelease($current_branch, $tag, $release_notes, $github_token);

    return 0;
  }
public function bltRelease ( $ tag , $ github_token , $ options = [ 'prev-tag' => NULL , ] ) { $ this -> stopOnFail ( ) ; $ current_branch = $ this -> getCurrentBranch ( ) ; $ this -> checkDirty ( ) ; $ this -> printReleasePreamble ( $ tag , $ current_branch ) ; $ this -> assertBranchMatchesUpstream ( $ current_branch ) ; $ this -> resetLocalBranch ( $ current_branch ) ; $ this -> updateBltVersionConstant ( $ tag ) ; $ prev_tag = $ this -> getPrevTag ( $ options , $ current_branch ) ; $ release_notes = $ this -> generateReleaseNotes ( $ prev_tag , $ tag , $ github_token ) ; $ this -> updateChangelog ( $ tag , $ release_notes ) ; // Push the change upstream. $ this -> _exec ( "git add CHANGELOG.md $this->bltRoot/src/Robo/Blt.php" ) ; $ this -> _exec ( "git commit -m 'Updating CHANGELOG.md and setting version for $tag.' -n" ) ; $ this -> _exec ( "git push upstream $current_branch" ) ; $ this -> createGitHubRelease ( $ current_branch , $ tag , $ release_notes , $ github_token ) ; return 0 ; }
Generates release notes and cuts a new tag on GitHub.

@command release

@param string $tag
The tag name. E.g, 8.6.10.
@param string $github_token
A github access token.
@option prev-tag The previous tag on the current branch from which to
determine diff.

@return int
The CLI status code.
Generates release notes and cuts a new tag on GitHub .