mirror of
https://github.com/langgenius/dify.git
synced 2026-03-27 11:02:18 -04:00
29 lines
724 B
YAML
29 lines
724 B
YAML
name: Semantic Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
- synchronize
|
|
merge_group:
|
|
branches: ["main"]
|
|
types: [checks_requested]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Validate PR title
|
|
permissions:
|
|
pull-requests: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Complete merge group check
|
|
if: github.event_name == 'merge_group'
|
|
run: echo "Semantic PR title validation is handled on pull requests."
|
|
- name: Check title
|
|
if: github.event_name == 'pull_request'
|
|
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|