Skip to content

Commit

Permalink
Merge pull request #263 from CraigFe/changelog-check
Browse files Browse the repository at this point in the history
Add a CI check for changelog entries
  • Loading branch information
craigfe authored Jul 27, 2020
2 parents cad9ed2 + fc98bcd commit cc94a8c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Changelog check

on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened, labeled, unlabeled ]

jobs:
build:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1

- name: git diff
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-needed') }}
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
! git diff --exit-code origin/$BASE_REF -- CHANGES.md

0 comments on commit cc94a8c

Please # to comment.