Skip to content

Commit

Permalink
feat(workflows): Ensure that PR titles conform to the conventional co…
Browse files Browse the repository at this point in the history
…mmits spec (#37)

Note that we probably want to [default to PR titles for squash merge
commit
messages](https://github.blog/changelog/2022-05-11-default-to-pr-titles-for-squash-merge-commit-messages/)
on repositories that use this.

![Screenshot 2024-06-03 at 10 47
51](https://github.com/hedia-team/.github/assets/1035167/b06e926e-8dbd-4822-b396-a9f58d6a60c3)
  • Loading branch information
Styrke authored Jun 3, 2024
1 parent 14fdd62 commit a474a10
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pull Request

on:
pull_request:
types:
- opened
- edited
- synchronize
workflow_call:

permissions:
pull-requests: read

jobs:
title:
runs-on: ubuntu-latest
steps:
- name: Check that title follows Conventional Commits spec
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a474a10

Please sign in to comment.