Skip to content

Commit ccb6e38

Browse files
authored
ci: add Codecov PR comments and conventional commit PR title check (#19)
- Add codecov.yml with project coverage display in PR comments - Add pr-title.yaml workflow to enforce conventional commit format on PR titles
1 parent 291647a commit ccb6e38

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/pr-title.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (C) 2025 Marcin Zieba <marcinpsk@gmail.com>
3+
name: Validate PR title
4+
5+
on:
6+
pull_request_target:
7+
types: [opened, edited, synchronize]
8+
9+
permissions:
10+
pull-requests: read
11+
12+
jobs:
13+
lint-pr-title:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Enforce conventional commit PR title
17+
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
types: |
22+
feat
23+
fix
24+
docs
25+
style
26+
refactor
27+
perf
28+
test
29+
build
30+
ci
31+
chore
32+
revert
33+
requireScope: false
34+
subjectPattern: ^.+$
35+
subjectPatternError: "PR title must not be empty after the type/scope prefix."

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (C) 2025 Marcin Zieba <marcinpsk@gmail.com>
3+
comment:
4+
layout: "diff, flags, files"
5+
behavior: default
6+
require_changes: false
7+
require_base: false
8+
require_head: true
9+
hide_project_coverage: false

0 commit comments

Comments
 (0)