tooling/lib/version.js
async function checkLastCommit() {
  debug('checking if the last commit message has explicit release instructions');
  const summary = await git.lastLog();
  const re = /^#release v(\d+\.\d+\.\d+)/;
  const match = summary.match(re);

  if (match) {
    const version = match[1];

    if (version) {
      return version;
    }
  }

  return undefined;
}
async function checkLastCommit() {
  debug('checking if the last commit message has explicit release instructions');
  const summary = await git.lastLog();
  const re = /^#release v(\d+\.\d+\.\d+)/;
  const match = summary.match(re);

  if (match) {
    const version = match[1];

    if (version) {
      return version;
    }
  }

  return undefined;
}
async function checkLastCommit ( ) { debug ( 'checking if the last commit message has explicit release instructions' ) ; const summary = await git . lastLog ( ) ; const re = / ^#release v(\d+\.\d+\.\d+) / ; const match = summary . match ( re ) ; if ( match ) { const version = match [ 1 ] ; if ( version ) { return version ; } } return undefined ; }
Determines if the last commit specified an explicit version to set
@returns {Promise<string>}
Determines if the last commit specified an explicit version to set