Merge pull request #8663 from nextcloud/fix/noid/appimage-comment-external-prs-2

fix(ci): use correct parameter for fetching the PRs of a branch
This commit is contained in:
Jyrki Gadinger 2025-08-28 10:30:27 +02:00 committed by GitHub
commit e4400b2aeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ jobs:
const pullRequestsForThisBranch = await github.rest.repos.listPullRequestsAssociatedWithCommit({
owner: context.payload.workflow_run.head_repository.owner.login,
repo: context.payload.workflow_run.head_repository.name,
run_id: context.payload.workflow_run.head_branch,
commit_sha: context.payload.workflow_run.head_branch,
});
const latestPullRequest = pullRequestsForThisBranch.data.sort((a, b) => b.id - a.id)[0];
if (!latestPullRequest) {