Skip to content

Commit c03a0a4

Browse files
committed
Add danger to validate changelog format
1 parent f904201 commit c03a0a4

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed

.github/workflows/danger.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
7+
jobs:
8+
danger:
9+
name: Danger
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 2.7
20+
bundler-cache: true
21+
- name: Run Danger
22+
env:
23+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: bundle exec danger --verbose

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
### 4.0.1 (Next)
2+
3+
* [#154](https://github.com/acm19/aws-request-signing-apache-interceptor/pull/154): This is just a test - [@acm19](https://github.com/acm19).
24
* [#153](https://github.com/acm19/aws-request-signing-apache-interceptor/pull/153): Validate CHANGELOG generation - [@acm19](https://github.com/acm19).
35
* [#151](https://github.com/acm19/aws-request-signing-apache-interceptor/pull/151): Upgrade deprecated actions/create-release@v1 - [@dblock](https://github.com/dblock).
46
* [#150](https://github.com/acm19/aws-request-signing-apache-interceptor/pull/150): Fix pom.xml indentation inconsistencies - [@dblock](https://github.com/dblock).

Dangerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Validate changelog updates
2+
changelog.check!

Dangertoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# danger.systems
2+
3+
toc.check!
4+
changelog.check!

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
3+
ruby '>= 2.7.0'
4+
5+
gem 'danger', '~> 9.0'
6+
gem 'danger-changelog', '~> 0.7.0'
7+
gem 'faraday-retry'

0 commit comments

Comments
 (0)