async function run() {
    try {
        // This should be a token with access to your repository scoped in as a secret.
        // The YML workflow will need to set myToken with the GitHub Secret Token
        // myToken: ${{ secrets.GITHUB_TOKEN }}
        // https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret
        const myToken = core.getInput('myToken');

        // Authenticated Octokit client
        const octokit = new github.GitHub(myToken);

        const step = core.getInput('step')
        switch (step) {
        case "card-for-request":
            await createIssueCard(octokit);
            break;
        case "request-to-review":
            await issue2pr(octokit);
            break;
        default:
            break;
        }
    } catch (error) {
        core.setFailed(error);
    }
}
// most @actions toolkit packages have async methods
most @actions toolkit packages have async methods
most @actions toolkit packages have async methods
async function run() {
    try {
        const myToken = core.getInput('myToken');
        const octokit = new github.GitHub(myToken);
        const step = core.getInput('step')
        switch (step) {
        case "card-for-request":
            await createIssueCard(octokit);
            break;
        case "request-to-review":
            await issue2pr(octokit);
            break;
        default:
            break;
        }
    } catch (error) {
        core.setFailed(error);
    }
}
async function run ( ) { try { const myToken = core . getInput ( 'myToken' ) ; const octokit = new github . GitHub ( myToken ) ; const step = core . getInput ( 'step' ) switch ( step ) { case "card-for-request" : await createIssueCard ( octokit ) ; break ; case "request-to-review" : await issue2pr ( octokit ) ; break ; default : break ; } } catch ( error ) { core . setFailed ( error ) ; } }
most @actions toolkit packages have async methods
most @actions toolkit packages have async methods
// This should be a token with access to your repository scoped in as a secret. // The YML workflow will need to set myToken with the GitHub Secret Token // myToken: ${{ secrets.GITHUB_TOKEN }} // https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret // Authenticated Octokit client