From 79559ae213a836672b379e0f4e864cd6e7826f5d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 17 May 2022 17:54:33 +0300 Subject: [PATCH] devops: auto add CQ1 label to browser rolls (#14228) --- .github/workflows/roll_browser_into_playwright.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/roll_browser_into_playwright.yml b/.github/workflows/roll_browser_into_playwright.yml index 5124a9dfe8..56e99143a6 100644 --- a/.github/workflows/roll_browser_into_playwright.yml +++ b/.github/workflows/roll_browser_into_playwright.yml @@ -38,10 +38,16 @@ jobs: with: github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }} script: | - await github.pulls.create({ + const response = await github.pulls.create({ owner: 'microsoft', repo: 'playwright', head: 'microsoft:${{ steps.prepare-branch.outputs.BRANCH_NAME }}', base: 'main', 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'], + });