dangerfile.js
function git(args) {
  return new Promise((resolve, reject) => {
    exec(`git ${args}`, (err, stdout) => {
      if (err) {
        reject(err);
      } else {
        resolve(stdout.trim());
      }
    });
  });
}
function git(args) {
  return new Promise((resolve, reject) => {
    exec(`git ${args}`, (err, stdout) => {
      if (err) {
        reject(err);
      } else {
        resolve(stdout.trim());
      }
    });
  });
}
function git ( args ) { return new Promise ( ( resolve , reject ) => { exec ( ` ${ args } ` , ( err , stdout ) => { if ( err ) { reject ( err ) ; } else { resolve ( stdout . trim ( ) ) ; } } ) ; } ) ; }
executes a git subcommand
@param {any} args
executes a git subcommand