bin/flows/build-chain-pull-request.js
/**
 * Prepares execution when this is triggered from a github action's event
 * @param {String} token the token to communicate to github
 * @param {Object} octokit octokit instance
 * @param {Object} env proces.env
 */
Prepares execution when this is triggered from a github action's event
@param {String} token the token to communicate to github
@param {Object} octokit octokit instance
@param {Object} env proces.env
Prepares execution when this is triggered from a github action ' s event @param { String } token the token to communicate to github @param { Object } octokit octokit instance @param { Object } env proces . env
async function executeFromEvent(token, octokit, env) {
  const eventDataStr = await fse.readFile(
    getProcessEnvVariable("GITHUB_EVENT_PATH"),
    "utf8"
  );
  const eventData = JSON.parse(eventDataStr);
  await execute(token, octokit, env, eventData, undefined, {
    isArchiveArtifacts: true
  });
}
async function executeFromEvent ( token , octokit , env ) { const eventDataStr = await fse . readFile ( getProcessEnvVariable ( "GITHUB_EVENT_PATH" ) , "utf8" ) ; const eventData = JSON . parse ( eventDataStr ) ; await execute ( token , octokit , env , eventData , undefined , { isArchiveArtifacts : true } ) ; }
Prepares execution when this is triggered from a github action's event
 @param {String} token the token to communicate to github
 @param {Object} octokit octokit instance
 @param {Object} env proces.env
Prepares execution when this is triggered from a github action ' s event @param { String } token the token to communicate to github @param { Object } octokit octokit instance @param { Object } env proces . env