Skip to content

Commit

Permalink
devops: have client side changes issue per Playwright version (#31052)
Browse files Browse the repository at this point in the history
This should address the issue which we had before of manually taking
entries over into a new issue.

Closes #31027
  • Loading branch information
mxschmitt authored May 28, 2024
1 parent 63fd28e commit 67181c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr_check_client_side_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,24 @@ jobs:
runs-on: ubuntu-20.04
if: github.repository == 'microsoft/playwright'
steps:
- uses: actions/checkout@v4
- name: Create GitHub issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
script: |
const currentPlaywrightVersion = require('./package.json').version.match(/\d+\.\d+/)[0];
const { data } = await github.rest.git.getCommit({
owner: context.repo.owner,
repo: context.repo.repo,
commit_sha: context.sha,
});
const commitHeader = data.message.split('\n')[0];
const title = '[Ports]: Backport client side changes';
const title = '[Ports]: Backport client side changes for ' + currentPlaywrightVersion;
for (const repo of ['playwright-python', 'playwright-java', 'playwright-dotnet']) {
const { data: issuesData } = await github.rest.search.issuesAndPullRequests({
q: `is:issue is:open repo:microsoft/${repo} in:title "${title}"`
q: `is:issue is:open repo:microsoft/${repo} in:title "${title}" author:playwrightmachine"`
})
let issueNumber = null;
let issueBody = '';
Expand Down

0 comments on commit 67181c9

Please sign in to comment.