From dafce99161b01b8bfe56c249eb5b647ba8fb0991 Mon Sep 17 00:00:00 2001 From: Bart van Amelsvoort Date: Fri, 24 May 2024 14:38:44 +0200 Subject: [PATCH] Added `changelog-enforcer` to pull request workflow --- .github/workflows/pull-request-checks.yaml | 12 +++++- CHANGELOG.md | 45 ++++++++++++++++------ 2 files changed, 45 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pull-request-checks.yaml b/.github/workflows/pull-request-checks.yaml index c35e224..812c653 100644 --- a/.github/workflows/pull-request-checks.yaml +++ b/.github/workflows/pull-request-checks.yaml @@ -1,6 +1,12 @@ name: Pull request checks -on: [ pull_request ] +on: + pull_request: + # The specific activity types are listed here to include "labeled" and "unlabeled" + # (which are not included by default for the "pull_request" trigger). + # This is needed to allow skipping enforcement of the changelog in PRs with specific labels, + # as defined in the (optional) "skipLabels" property. + types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ] jobs: tests: @@ -37,7 +43,11 @@ jobs: - name: Run lint PHP run: composer run-script php-cs-fixer-dry-run + if: success() || failure() # Tests - name: Run PHP unit test suite run: vendor/bin/phpunit -v -c . + + - uses: dangoslen/changelog-enforcer@v3 + if: success() || failure() diff --git a/CHANGELOG.md b/CHANGELOG.md index 764dc74..f807a7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,37 @@ -CHANGELOG -========= +# Changelog -This changelog references the relevant changes (bug/security fixes, enhancements) done in minor versions. -To get the diff between two versions, go to: https://github.com/freshheads/FHMultiSiteBundle/compare/v1.0.0...v1.0.1 +All notable changes to this project will be documented in this file. -1.1 +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -* Drops support for Symfony below version 4.4 -* Adds support for Symfony 5.x -* Adds support for Twig 3 -* Marks bundle config classes as final in docblock; will be final in next major: - * FH\Bundle\MultiSiteBundle\DependencyInjection\Configuration - * FH\Bundle\MultiSiteBundle\DependencyInjection\FHMultiSiteExtension +## Unreleased + +### Added + +- Added `changelog-enforcer` to pull request workflow. + +### Changed + +- Run pull request workflow also on lowest dependencies. +- Added `php-cs-fixer/shim` as dev dependency. + +### Removed + +- Removed support for PHP 7.3. +- Removed `bamarni/composer-bin-plugin` dev dependency. + +## 1.1.0 - 2020-07-08 + +### Added + +- Added support for Symfony 5.x. +- Added support for Twig 3. + +### Removed + +- Dropped support for Symfony below version 4.4. + +### Deprecated + +- Marked classes in `FH\Bundle\MultiSiteBundle\DependencyInjection` as final in docblock; will be final in next major.