playwright/.github/workflows/pr_check_client_side_changes.yml

34 lines
968 B
YAML
Raw Normal View History

name: "Check client side changes"
on:
push:
branches:
- master
paths:
- 'src/client/**/*'
jobs:
check:
name: Check
runs-on: ubuntu-20.04
if: github.repository == 'microsoft/playwright'
steps:
- name: Create GitHub issue
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
- [ ] .NET`;
await github.issues.create({
owner: 'microsoft',
2021-08-28 01:06:49 +03:00
repo: 'playwright',
title: `[Ports] Apply: ${commitHeader}`,
body,
});