async function create_checks_by_rerequested()

in azure-pipelines-wrapper/check_run.js [190:206]


async function  create_checks_by_rerequested(context){
    var payload = context.payload;
    if (!'check_run' in payload){
        return null;
    }

    var check_run = payload.check_run;
    if (check_run.app.id != process.env.APP_ID){
        console.log(`Skip the check_run:${check_run.id}, for the app name: ${check_run.app.name}`);
        return null;
    }
    
    var owner = payload.repository.owner.login;
    var repo = payload.repository.name;
    var pullRequestId = check_run.external_id.split('|')[0];
    return create_checks_by_pullRequest(context, owner, repo, pullRequestId);
}