Skip to content

Remove and Add Multiple Labels on Approval #154

Remove and Add Multiple Labels on Approval

Remove and Add Multiple Labels on Approval #154

name: Remove and Add Multiple Labels on Approval
on:
pull_request_review:
types:
- submitted
jobs:
remove-labels-on-approve:
if: github.event.review?.state == 'approved' # Trigger only when the review is approved

Check failure on line 10 in .github/workflows/remove-label-on-approve.yml

View workflow run for this annotation

GitHub Actions / Remove and Add Multiple Labels on Approval

Invalid workflow file

The workflow is not valid. .github/workflows/remove-label-on-approve.yml (Line: 10, Col: 9): Unexpected symbol: 'review?'. Located at position 14 within expression: github.event.review?.state == 'approved'
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4