Skip to content

Commit

Permalink
CI: add suport for spell checking PR title (#2755)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao authored Nov 2, 2023
1 parent b3c846d commit 6ab79e6
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Conventional Commit Message Check
name: PR Title Checks

on:
# This is a dangerous event trigger as it causes the workflow to run in the
Expand Down Expand Up @@ -35,6 +35,19 @@ env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
typos:
name: Spell check PR title
runs-on: ubuntu-latest
steps:
- name: Store PR title in a file
shell: bash
run: echo '${{ github.event.pull_request.title }}' > pr_title.txt

- name: Spell check
uses: crate-ci/typos@master
with:
files: ./pr_title.txt

pr_title_check:
name: Verify PR title follows conventional commit standards
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6ab79e6

Please sign in to comment.