Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bonyuta0204 committed Nov 29, 2023
1 parent 4a82f27 commit af5f214
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getInput } from "@actions/core";
import { getOctokit } from "@actions/github";
import { getOctokit, context } from "@actions/github";

function main() {
const token = getInput("repo-token");
Expand All @@ -14,9 +14,7 @@ function main() {
return;
}

// Assuming the context of the action has repository information
const owner = process.env.GITHUB_REPOSITORY_OWNER || "";
const repo = (process.env.GITHUB_REPOSITORY || "").split("/")[1];
const { repo, owner } = context.repo;

octokit.rest.pulls
.create({
Expand Down

0 comments on commit af5f214

Please sign in to comment.