mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
fix: list pulls using the correct head format (#2792)
This commit is contained in:
parent
853c071bcf
commit
a4f52f8033
2 changed files with 2 additions and 4 deletions
|
@ -48,7 +48,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 {
|
||||
|
@ -85,7 +84,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`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue