diff --git a/dist/index.js b/dist/index.js index 607afa3..9506288 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26194,8 +26194,7 @@ var __webpack_exports__ = {} const botUser = `${appUser.slug}[bot]` context.botUser = botUser - const owner = process.env.GITHUB_REPOSITORY_OWNER - const repo = process.env.GITHUB_REPOSITORY_NAME + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/') if (context.eventName === 'workflow_dispatch') { const users = await query(octokit, owner, repo, core) for (const user of users) { diff --git a/src/index.js b/src/index.js index 38ccec6..778c08d 100644 --- a/src/index.js +++ b/src/index.js @@ -40,8 +40,7 @@ async function run() { const botUser = `${appUser.slug}[bot]` context.botUser = botUser - const owner = process.env.GITHUB_REPOSITORY_OWNER - const repo = process.env.GITHUB_REPOSITORY_NAME + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/') if (context.eventName === 'workflow_dispatch') { const users = await query(octokit, owner, repo, core) for (const user of users) {