Skip to content

Commit

Permalink
Merge pull request #124 from rust-embedded/check-changelog
Browse files Browse the repository at this point in the history
Check CHANGELOG.md on PRs to master
  • Loading branch information
romancardenas authored Oct 3, 2023
2 parents da226b6 + 26e2095 commit cc4f035
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions riscv-rt/.github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check CHANGELOG.md

on:
merge_group:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
changelog-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check for CHANGELOG.md
uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: 'skip changelog'
missingUpdateErrorMessage: 'Please add a changelog entry in the CHANGELOG.md file.'

18 changes: 18 additions & 0 deletions riscv-rt/.github/workflows/label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check Labels

on:
merge_group:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
label-check:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 0
labels: "work in progress, do not merge"
add_comment: true
message: "This PR is being prevented from merging because it presents one of the blocking labels: {{ provided }}."
2 changes: 2 additions & 0 deletions riscv-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added

- New GitHub workflow for checking invalid labels in PRs
- New GitHub workflow for checking modifications on CHANGELOG.md
- New GitHub workflow for checking clippy lints in PRs

### Changed
Expand Down

0 comments on commit cc4f035

Please sign in to comment.