diff --git a/.github/workflows/pr_check_client_side_changes.yml b/.github/workflows/pr_check_client_side_changes.yml index 4b80218a29..219e8b4405 100644 --- a/.github/workflows/pr_check_client_side_changes.yml +++ b/.github/workflows/pr_check_client_side_changes.yml @@ -15,12 +15,12 @@ jobs: uses: actions/github-script@v4 with: script: | - const commit = await github.git.getCommit({ + const { data } = await github.git.getCommit({ owner: 'microsoft', repo: 'playwright', commit_sha: '${{ github.sha }}', }); - const commitHeader = commit.message.split('\n')[0]; + const commitHeader = data.message.split('\n')[0]; const body = `${{ github.sha }} made changes to the client, this needs to get applied in: - [ ] Python - [ ] Java