devops: auto add CQ1 label to browser rolls (#14228)
This commit is contained in:
parent
721721141f
commit
79559ae213
|
|
@ -38,10 +38,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
await github.pulls.create({
|
const response = await github.pulls.create({
|
||||||
owner: 'microsoft',
|
owner: 'microsoft',
|
||||||
repo: 'playwright',
|
repo: 'playwright',
|
||||||
head: 'microsoft:${{ steps.prepare-branch.outputs.BRANCH_NAME }}',
|
head: 'microsoft:${{ steps.prepare-branch.outputs.BRANCH_NAME }}',
|
||||||
base: 'main',
|
base: 'main',
|
||||||
title: 'feat(${{ github.event.client_payload.browser }}): roll to r${{ github.event.client_payload.revision }}',
|
title: 'feat(${{ github.event.client_payload.browser }}): roll to r${{ github.event.client_payload.revision }}',
|
||||||
});
|
});
|
||||||
|
await github.issues.addLabels({
|
||||||
|
owner: 'microsoft',
|
||||||
|
repo: 'playwright',
|
||||||
|
issue_number: response.data.number,
|
||||||
|
labels: ['CQ1'],
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue