From fd5c10e5d72cb70dbbfd389cf2bc68e26541077c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 31 Aug 2021 19:48:18 +0200 Subject: [PATCH] chore: have commit header in the client side changes issue title (#8591) --- .github/workflows/pr_check_client_side_changes.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_check_client_side_changes.yml b/.github/workflows/pr_check_client_side_changes.yml index acb22267a0..4b80218a29 100644 --- a/.github/workflows/pr_check_client_side_changes.yml +++ b/.github/workflows/pr_check_client_side_changes.yml @@ -15,6 +15,12 @@ jobs: uses: actions/github-script@v4 with: script: | + const commit = await github.git.getCommit({ + owner: 'microsoft', + repo: 'playwright', + commit_sha: '${{ github.sha }}', + }); + const commitHeader = commit.message.split('\n')[0]; const body = `${{ github.sha }} made changes to the client, this needs to get applied in: - [ ] Python - [ ] Java @@ -22,6 +28,6 @@ jobs: await github.issues.create({ owner: 'microsoft', repo: 'playwright', - title: '[Internal] Backport client change to language ports', + title: `[Ports] Apply: ${commitHeader}`, body, });