hedia-team / .github

0 stars 0 forks source link

feat(workflows): Ensure that PR titles conform to the conventional commits spec #37

Closed Styrke closed 3 months ago

Styrke commented 3 months ago

Note that we probably want to default to PR titles for squash merge commit messages on repositories that use this.

Screenshot 2024-06-03 at 10 47 51

aimeerivers commented 3 months ago

please add a workflow_call:trigger to enable it to be called from other workflows.

then you can test it with something like this:

name: Check commit title

on:
    issues:
        types:
            - opened
            - reopened
    pull_request:
        types:
            - opened
            - reopened

jobs:
    lint-pr:
        uses: hedia-team/.github/.github/workflows/lint-pr.yml@conventional-commits-pr
        secrets: inherit