mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: have client side changes issue per Playwright version (#31052)
This should address the issue which we had before of manually taking entries over into a new issue. Closes https://github.com/microsoft/playwright/pull/31027
This commit is contained in:
parent
63fd28e038
commit
67181c9f11
@ -15,11 +15,13 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Create GitHub issue
|
- name: Create GitHub issue
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
const currentPlaywrightVersion = require('./package.json').version.match(/\d+\.\d+/)[0];
|
||||||
const { data } = await github.rest.git.getCommit({
|
const { data } = await github.rest.git.getCommit({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
@ -27,10 +29,10 @@ jobs:
|
|||||||
});
|
});
|
||||||
const commitHeader = data.message.split('\n')[0];
|
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']) {
|
for (const repo of ['playwright-python', 'playwright-java', 'playwright-dotnet']) {
|
||||||
const { data: issuesData } = await github.rest.search.issuesAndPullRequests({
|
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 issueNumber = null;
|
||||||
let issueBody = '';
|
let issueBody = '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user