Skip to content

Commit 6301ad4

Browse files
authored
Merge pull request #145 from rust-embedded/add-cis
Add CI for CHANGELOG.md file
2 parents ebc8968 + c067315 commit 6301ad4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/changelog.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check CHANGELOG.md
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
7+
8+
jobs:
9+
changelog-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Check for CHANGELOG.md
16+
uses: dangoslen/changelog-enforcer@v3
17+
with:
18+
skipLabels: 'skip changelog'
19+
missingUpdateErrorMessage: 'Please add a changelog entry in the CHANGELOG.md file.'
20+

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Added
1111

12+
- Add CI workflow to check that CHANGELOG.md file has been modified in PRs
1213
- Add `read_csr_as_rv32`, `set_rv32`, and `clear_rv32` macros
1314
- Add `mstatus::uxl` and `mstatus::sxl`
1415
- Add `mstatus::ube`, `mstatus::sbe`, and `mstatus::mbe` endianness bit fields

0 commit comments

Comments
 (0)