Skip to content

Commit 099c3ba

Browse files
chore: changed github PR number fetch
1 parent fe17f75 commit 099c3ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ jobs:
5656
const { owner, repo } = context.repo;
5757
const sha = "${{ github.sha }}";
5858
59-
console.log(owner, repo)
59+
console.log(owner, repo);
6060
6161
const response = await github.rest.search.issuesAndPullRequests({
62-
q: `repo:${repo} is:pr sha:${sha}`,
62+
q: `repo:${owner}/${repo} is:pr sha:${sha}`,
6363
per_page: 1,
64-
})
65-
const items = response.data.items
64+
});
65+
const items = response.data.items;
6666
if (items.length < 1) {
67-
console.error('No PRs found')
68-
return
67+
console.error('No PRs found');
68+
return;
6969
}
7070
const issue_number = items[0].number
7171
console.info("Pull request number is", issue_number)

0 commit comments

Comments
 (0)