Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label on approve #6115

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/add-label-on-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Add Label to run extended tests on approve

on:
pull_request_review:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
label_issues:
if: github.event.review.state == 'commented' && !contains( github.event.pull_request.labels.*.name, 'extended-tests')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- run: gh pr edit "$NUMBER" --add-label "extended-tests"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
6 changes: 3 additions & 3 deletions .github/workflows/tests-extended.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Lexical Tests (Extended)

on:
merge_group:
workflow_call:
pull_request:
types: [labeled, synchronize]
types: [labeled]
paths-ignore:
- 'packages/lexical-website/**'

Expand All @@ -13,5 +13,5 @@ concurrency:

jobs:
e2e-tests:
if: (github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests')) || github.event_name == 'merge_group'
if: contains(github.event.pull_request.labels.*.name, 'extended-tests')
uses: ./.github/workflows/call-e2e-all-tests.yml
Loading