From 2a25773f5dd99d86e14132699a5724a32cb2d442 Mon Sep 17 00:00:00 2001 From: sahejkm Date: Tue, 28 May 2024 18:33:45 +0900 Subject: [PATCH 1/4] use lexical bot for adding label --- .github/workflows/after-approval.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/after-approval.yml b/.github/workflows/after-approval.yml index 61da7e65e17..85117d40999 100644 --- a/.github/workflows/after-approval.yml +++ b/.github/workflows/after-approval.yml @@ -10,7 +10,7 @@ concurrency: jobs: label-pr: - if: github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests') + if: github.event.review.state == 'commented' && !contains(github.event.pull_request.labels.*.name, 'extended-tests') runs-on: ubuntu-latest permissions: contents: read @@ -18,7 +18,7 @@ jobs: steps: - name: Add label for extended tests env: - GH_TOKEN: ${{ secrets.ADD_LABEL_PAT }} + GH_TOKEN: ${{ secrets.LEXICAL_BOT_TOKEN }} GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.pull_request.number }} run: | From be93306d74d088b0606f86b2c9cb4df816001f1a Mon Sep 17 00:00:00 2001 From: sahejkm Date: Tue, 28 May 2024 18:36:33 +0900 Subject: [PATCH 2/4] testing --- .github/workflows/tests-extended.yml | 34 ++++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/tests-extended.yml b/.github/workflows/tests-extended.yml index fbb522084a8..2895e50cf30 100644 --- a/.github/workflows/tests-extended.yml +++ b/.github/workflows/tests-extended.yml @@ -1,21 +1,21 @@ -name: Lexical Tests (Extended) +# name: Lexical Tests (Extended) -on: - pull_request: - types: [labeled, synchronize, reopened] - paths-ignore: - - 'packages/lexical-website/**' - - 'packages/*/README.md' +# on: +# pull_request: +# types: [labeled, synchronize, reopened] +# paths-ignore: +# - 'packages/lexical-website/**' +# - 'packages/*/README.md' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.ref }} +# cancel-in-progress: true -jobs: - e2e-tests: - if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') - uses: ./.github/workflows/call-e2e-all-tests.yml +# jobs: +# e2e-tests: +# if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') +# uses: ./.github/workflows/call-e2e-all-tests.yml - integration-tests: - if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') - uses: ./.github/workflows/call-integration-tests.yml +# integration-tests: +# if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') +# uses: ./.github/workflows/call-integration-tests.yml From 0293f0452753bbbdd236d1174a7867c8fb5dedd1 Mon Sep 17 00:00:00 2001 From: sahejkm Date: Tue, 28 May 2024 18:47:47 +0900 Subject: [PATCH 3/4] . --- .github/workflows/after-approval.yml | 2 +- .github/workflows/tests-extended.yml | 34 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/after-approval.yml b/.github/workflows/after-approval.yml index 85117d40999..a3751ecc12a 100644 --- a/.github/workflows/after-approval.yml +++ b/.github/workflows/after-approval.yml @@ -10,7 +10,7 @@ concurrency: jobs: label-pr: - if: github.event.review.state == 'commented' && !contains(github.event.pull_request.labels.*.name, 'extended-tests') + if: github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests') runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/tests-extended.yml b/.github/workflows/tests-extended.yml index 2895e50cf30..52f4d150f3d 100644 --- a/.github/workflows/tests-extended.yml +++ b/.github/workflows/tests-extended.yml @@ -1,21 +1,21 @@ -# name: Lexical Tests (Extended) +name: Lexical Tests (Extended) -# on: -# pull_request: -# types: [labeled, synchronize, reopened] -# paths-ignore: -# - 'packages/lexical-website/**' -# - 'packages/*/README.md' +on: + pull_request: + types: [labeled, synchronize, reopened] + paths-ignore: + - 'packages/lexical-website/**' + - 'packages/*/README.md' -# concurrency: -# group: ${{ github.workflow }}-${{ github.ref }} -# cancel-in-progress: true +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true -# jobs: -# e2e-tests: -# if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') -# uses: ./.github/workflows/call-e2e-all-tests.yml +jobs: + # e2e-tests: + # if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') + # uses: ./.github/workflows/call-e2e-all-tests.yml -# integration-tests: -# if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') -# uses: ./.github/workflows/call-integration-tests.yml + integration-tests: + if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') + uses: ./.github/workflows/call-integration-tests.yml From 99637bf535c7b12ea24dd4b49edbf3b08007b9c9 Mon Sep 17 00:00:00 2001 From: sahejkm Date: Tue, 28 May 2024 18:48:38 +0900 Subject: [PATCH 4/4] . --- .github/workflows/tests-extended.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests-extended.yml b/.github/workflows/tests-extended.yml index 52f4d150f3d..fbb522084a8 100644 --- a/.github/workflows/tests-extended.yml +++ b/.github/workflows/tests-extended.yml @@ -12,9 +12,9 @@ concurrency: cancel-in-progress: true jobs: - # e2e-tests: - # if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') - # uses: ./.github/workflows/call-e2e-all-tests.yml + e2e-tests: + if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests') + uses: ./.github/workflows/call-e2e-all-tests.yml integration-tests: if: github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests')