langflow/.github/workflows/conventional-labels.yml
Gabriel Luiz Freitas Almeida 6b21682b33
chore: Update CI workflow to include 'merge_group' event (#5337)
* chore: Update CI workflow to include 'merge_group' event and adjust CI run conditions

- Added 'merge_group' event type to the CI workflow triggers.
- Updated the condition for running CI jobs to include 'merge_group' alongside existing events.

* chore: Add 'merge_group' event to CI workflow for enhanced PR handling
2024-12-18 07:43:20 -08:00

29 lines
894 B
YAML

# Warning, do not check out untrusted code with
# the pull_request_target event.
name: Label PRs with Conventional Commits
on:
pull_request_target:
types: [opened, edited, synchronize]
merge_group:
jobs:
validate-pr:
name: Validate PR
runs-on: ubuntu-latest
steps:
- name: Validate the pull request
id: validate
uses: Namchee/conventional-pr@v0.15.5
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
issue: false
label:
needs: validate-pr
name: Label PR
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.type != 'Bot'}}
steps:
- uses: bcoe/conventional-release-labels@v1
with:
type_labels: '{"feat": "enhancement","fix": "bug","docs": "documentation","style": "style","refactor": "refactor","perf": "performance","test": "test","chore": "chore","build": "build"}'