# Drop into .github/workflows/ of an R package or Shiny app repo.
# With squash-merge, the PR title becomes the commit on main, so check it here.
# No Node or npm needed in the R repo: this is a hosted action.
name: pr-title

on:
  pull_request:
    types: [opened, edited, reopened, synchronize]

permissions:
  pull-requests: read

jobs:
  conventional-title:
    runs-on: ubuntu-latest
    steps:
      - uses: amannn/action-semantic-pull-request@v6
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
