diff --git a/.github/workflows/conventional-pr.yml b/.github/workflows/conventional-pr.yml new file mode 100644 index 0000000..e3ef03a --- /dev/null +++ b/.github/workflows/conventional-pr.yml @@ -0,0 +1,25 @@ +name: conventional-pr +on: + pull_request: + branches: + - main + types: + - opened + - edited + - synchronize +permissions: + contents: read + pull-requests: read + statuses: write +jobs: + lint-pr: + runs-on: ubuntu-latest + timeout-minutes: 15 + if: ${{ !startsWith(github.event.head_commit.message, '[Release]') }} + steps: + - uses: actions/checkout@v6 + - uses: amannn/action-semantic-pull-request@v6 + with: + requireScope: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file