Skip to content

Commit

Permalink
Replace changelog reminder action (#328)
Browse files Browse the repository at this point in the history
* Replace changelog reminder action

... with a custom solution that can ignore Dependabot PRs.

* Add Changelog
  • Loading branch information
amureki committed Jun 26, 2022
1 parent e75c341 commit 2ee2351
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
on: pull_request

name: Changelog Reminder

on: pull_request

jobs:
remind:
runs-on: ubuntu-latest
if: |
!contains(github.event.pull_request.body, '[skip changelog]') &&
(github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@main
- uses: peterjgrainger/action-changelog-reminder@v1.3.0
with:
changelog_regex: 'CHANGELOG.md'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
- name: Check that CHANGELOG is updated
run: git diff origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Django 4.1 support [PR #327](https://github.com/model-bakers/model_bakery/pull/327)

### Changed
- [dev] Replace changelog reminder action with a custom solution that can ignore Dependabot PRs [PR #328](https://github.com/model-bakers/model_bakery/pull/328)

### Removed
- Drop Python 3.6 support [PR #325](https://github.com/model-bakers/model_bakery/pull/325)
Expand Down

0 comments on commit 2ee2351

Please sign in to comment.