diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 00000000..8464f25e --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,31 @@ +name: PR Title + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +permissions: + pull-requests: read + +jobs: + semantic-title: + name: Conventional title + runs-on: ubuntu-latest + steps: + # Il merge squash usa il titolo della PR come messaggio del commit su main: + # senza prefisso conventional release-please ignora il commit e il release + # bump salta (successo già a #318 → mancata 1.1.2). + - uses: amannn/action-semantic-pull-request@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + refactor + perf + docs + test + chore + ci + requireScope: false