Skip to content

Commit 1db7ee6

Browse files
authored
Add changelog enforcement stuff (#7)
1 parent e5fe640 commit 1db7ee6

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
labels:
8+
- "dependencies"
9+
- "github-actions"
10+
- "no changelog entry needed"
711
- package-ecosystem: "cargo"
812
directory: "/"
913
schedule:
1014
interval: "daily"
15+
labels:
16+
- "dependencies"
17+
- "rust"
18+
- "no changelog entry needed"

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
Pull request checklist:
3+
4+
- [ ] `CHANGELOG.md` was updated, if applicable
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Changelog Check
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ]
7+
8+
jobs:
9+
check-changelog:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
# Gives an error if there's no change in the changelog (except using label)
15+
- name: Changelog check
16+
uses: dangoslen/[email protected]
17+
with:
18+
changeLogPath: 'CHANGELOG.md'
19+
skipLabel: 'no changelog entry needed'

0 commit comments

Comments
 (0)