Skip to content

Commit

Permalink
Remove unavailable base branch reference
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jun 20, 2024
1 parent 4476d9c commit 828e9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function run() {
throw new Error('The pull request number must be provided when not running in a workflow run event (triggered by pull_request event) context.')
}
core.info('Finding matching pull requests...')
const q = `is:pr repo:${owner}/${repo} head:${github.context.payload.workflow_run.head_branch} base:${github.context.payload.workflow_run.base_branch} ${github.context.payload.workflow_run.head_commit.id}`
const q = `is:pr repo:${owner}/${repo} head:${github.context.payload.workflow_run.head_branch} ${github.context.payload.workflow_run.head_sha}`
core.info(`Query: ${q}`)
const pull_requests = await octokit.paginate(octokit.rest.search.issuesAndPullRequests, { q })
core.debug(`Pull requests: ${JSON.stringify(pull_requests, null, 2)}`)
Expand Down

0 comments on commit 828e9be

Please sign in to comment.