fix: repo

This commit is contained in:
thomas
2024-04-17 22:27:31 +02:00
parent 8d584ad163
commit 430022e0bb
3 changed files with 6 additions and 5 deletions

View File

@@ -25,10 +25,7 @@ async function run() {
const githubToken = core.getInput('github_token');
const [owner, repo] = core.getInput('repo').split('/');
const number =
core.getInput('number') === ''
? github.context.issue.number
: parseInt(core.getInput('number'));
const number = github.context.issue.number;
const octokit = github.getOctokit(githubToken);
await octokit.rest.issues.addLabels({