Skip to content

Workflow file for this run

name: "Lint PR Title"
on:
pull_request:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
jobs:
main:
name: Validate PR title and target
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check PR target
run: echo ${{ github.event.pull_request.title }} ${{ github.base_ref }}
if: ${{ startsWith(github.event.pull_request.title, "feat") && github.base_ref != "develop" }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('Invalid target branch for feature PR')