Skip to content

Commit cc4f035

Browse files
Merge pull request #124 from rust-embedded/check-changelog
Check CHANGELOG.md on PRs to master
2 parents da226b6 + 26e2095 commit cc4f035

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
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+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check Labels
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
7+
8+
jobs:
9+
label-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: mheap/github-action-required-labels@v5
13+
with:
14+
mode: exactly
15+
count: 0
16+
labels: "work in progress, do not merge"
17+
add_comment: true
18+
message: "This PR is being prevented from merging because it presents one of the blocking labels: {{ provided }}."

riscv-rt/CHANGELOG.md

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

1010
### Added
1111

12+
- New GitHub workflow for checking invalid labels in PRs
13+
- New GitHub workflow for checking modifications on CHANGELOG.md
1214
- New GitHub workflow for checking clippy lints in PRs
1315

1416
### Changed

0 commit comments

Comments
 (0)