We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe17f75 commit 099c3baCopy full SHA for 099c3ba
.github/workflows/deploy.yml
@@ -56,16 +56,16 @@ jobs:
56
const { owner, repo } = context.repo;
57
const sha = "${{ github.sha }}";
58
59
- console.log(owner, repo)
+ console.log(owner, repo);
60
61
const response = await github.rest.search.issuesAndPullRequests({
62
- q: `repo:${repo} is:pr sha:${sha}`,
+ q: `repo:${owner}/${repo} is:pr sha:${sha}`,
63
per_page: 1,
64
- })
65
- const items = response.data.items
+ });
+ const items = response.data.items;
66
if (items.length < 1) {
67
- console.error('No PRs found')
68
- return
+ console.error('No PRs found');
+ return;
69
}
70
const issue_number = items[0].number
71
console.info("Pull request number is", issue_number)
0 commit comments