Skip to content

Commit

Permalink
Merge pull request #78 from cookienc/main
Browse files Browse the repository at this point in the history
Fetch base-check-commit-message.yml from fosslight/.github
  • Loading branch information
soimkim authored Oct 13, 2023
2 parents 21f6902 + cb72196 commit eccdfa9
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,9 @@ on:

jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/[email protected]
with:
token: ${{ secrets.TOKEN }}

- name: Check Subject Line Length
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^.{0,50}(\n.*)*$'
error: 'Subject too long (max 50)'
- name: Check Body Line Length
if: ${{ success() || failure() }}
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^.+(\n.{0,72})*$'
error: 'Body line too long (max 72)'
uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main
secrets:
envPAT: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit eccdfa9

Please sign in to comment.