Skip to content

Commit d9fb8e5

Browse files
committed
Added workflow to check invalid labels
1 parent 8c2058e commit d9fb8e5

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

riscv-rt/.github/workflows/changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
77

88
jobs:
9-
check_changelog:
9+
changelog-check:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check Labels
2+
on:
3+
merge_group:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
6+
7+
jobs:
8+
label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- id: labels-check
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 }}."
19+

riscv-rt/CHANGELOG.md

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

1010
### Added
1111

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

1516
### Changed

0 commit comments

Comments
 (0)