Skip to content

Commit

Permalink
fix gh command
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal authored Jul 15, 2023
1 parent a500299 commit 6cc97fb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion changed-files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,20 @@ async function run() {
let baseRef, headRef;
await exec.exec(
"gh",
["pr", "view", prNumber, "--json", "baseRefName,headRefName"],
[
"pr",
"view",
prNumber,
"--repo",
github.context.repo,
"--json",
"baseRefName,headRefName",
],
{
silent: true,
env: {
GH_TOKEN: accessToken,
},
listeners: {
stdout: (data) => {
const prData = JSON.parse(data.toString());
Expand Down

0 comments on commit 6cc97fb

Please sign in to comment.