Skip to content

Commit 99e6aac

Browse files
committed
Fix action
1 parent d021018 commit 99e6aac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/check-merge-queue/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ runs:
101101
return;
102102
}
103103
104-
const comparison = await github.repos.compareCommitsWithBasehead({
104+
const comparison = await github.rest.repos.compareCommitsWithBasehead({
105105
owner: context.repo.owner,
106106
repo: context.repo.repo,
107107
basehead: `${BASE_REF}...${PR_BRANCH}`,
108108
});
109109
110-
if (comparison.status === 'identical' || comparison.status === 'ahead') {
110+
if (comparison.data.status === 'identical' || comparison.data.status === 'ahead') {
111111
core.info(`Pull request branch "${PR_BRANCH}" is up-to-date with base branch "${BASE_REF}".`);
112112
core.setOutput('up-to-date', 'true');
113113
} else {

0 commit comments

Comments
 (0)