Skip to content

Commit 0032520

Browse files
Merge pull request #48 from communitybridge/feature/commitlint
feat: completed commitlint integration
2 parents 6a384e1 + fbd4361 commit 0032520

File tree

6 files changed

+19383
-1672
lines changed

6 files changed

+19383
-1672
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright The Linux Foundation and each contributor to CommunityBridge.
2+
# SPDX-License-Identifier: MIT
3+
4+
name: PR Title Lint
5+
on:
6+
pull_request:
7+
# By default, a workflow only runs when a pull_request's activity type is opened, synchronize, or reopened. We
8+
# explicity override here so that PR titles are re-linted when the PR text content is edited.
9+
#
10+
# Possible values: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
11+
types: [opened, edited, reopened, synchronize]
12+
13+
jobs:
14+
pr-title-lint:
15+
uses: linuxfoundation/lfx-ui/.github/workflows/_pr-title-lint.yml@main

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright The Linux Foundation and each contributor to CommunityBridge.
2+
# SPDX-License-Identifier: MIT
3+
4+
npx --no -- commitlint --edit $1

commitlint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)