fix: list pulls using the correct head format (#2792)

This commit is contained in:
Peter Evans 2024-02-28 09:28:24 +09:00
parent 153407881e
commit 4e1beaa752
2 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,6 @@ export class GitHubHelper {
): Promise<Pull> {
const [headOwner] = headRepository.split('/')
const headBranch = `${headOwner}:${inputs.branch}`
const headBranchFull = `${headRepository}:${inputs.branch}`
// Try to create the pull request
try {
@ -81,7 +80,7 @@ export class GitHubHelper {
const {data: pulls} = await this.octokit.rest.pulls.list({
...this.parseRepository(baseRepository),
state: 'open',
head: headBranchFull,
head: headBranch,
base: inputs.base
})
core.info(`Attempting update of pull request`)