chore: have commit header in the client side changes issue title (#8591)

This commit is contained in:
Max Schmitt 2021-08-31 19:48:18 +02:00 committed by GitHub
parent 9f8e8444d8
commit fd5c10e5d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});