2021-08-25 14:36:57 +03:00
|
|
|
|
name: "Check client side changes"
|
|
|
|
|
on:
|
2021-08-27 13:22:49 +03:00
|
|
|
|
push:
|
2021-08-25 14:36:57 +03:00
|
|
|
|
branches:
|
|
|
|
|
- master
|
|
|
|
|
paths:
|
|
|
|
|
- 'src/client/**/*'
|
|
|
|
|
jobs:
|
|
|
|
|
check:
|
|
|
|
|
name: Check
|
|
|
|
|
runs-on: ubuntu-20.04
|
2021-08-27 13:22:49 +03:00
|
|
|
|
if: github.repository == 'microsoft/playwright'
|
2021-08-25 14:36:57 +03:00
|
|
|
|
steps:
|
|
|
|
|
- name: Create GitHub issue
|
|
|
|
|
uses: actions/github-script@v4
|
|
|
|
|
with:
|
|
|
|
|
script: |
|
2021-08-31 20:48:18 +03:00
|
|
|
|
const commit = await github.git.getCommit({
|
|
|
|
|
owner: 'microsoft',
|
|
|
|
|
repo: 'playwright',
|
|
|
|
|
commit_sha: '${{ github.sha }}',
|
|
|
|
|
});
|
|
|
|
|
const commitHeader = commit.message.split('\n')[0];
|
2021-08-27 13:22:49 +03:00
|
|
|
|
const body = `${{ github.sha }} made changes to the client, this needs to get applied in:
|
2021-08-25 14:36:57 +03:00
|
|
|
|
- [ ] Python
|
|
|
|
|
- [ ] Java
|
|
|
|
|
- [ ] .NET`;
|
|
|
|
|
await github.issues.create({
|
2021-08-27 13:22:49 +03:00
|
|
|
|
owner: 'microsoft',
|
2021-08-28 01:06:49 +03:00
|
|
|
|
repo: 'playwright',
|
2021-08-31 20:48:18 +03:00
|
|
|
|
title: `[Ports] Apply: ${commitHeader}`,
|
2021-08-25 14:36:57 +03:00
|
|
|
|
body,
|
|
|
|
|
});
|