ci: don't run changelog check on chores and refactor PRs

We don't always want to write a changelog entry or bump the version of a crate when we make changes to it. This especially applies to refactorings and other chores. We can automatically detect such PRs based on our conventional commit title.

At the moment, this is not per crate but could be extended in the future. For now, this should be good enough to unblock PRs that are currently stuck on this workflow.

Pull-Request: #4658.
This commit is contained in:
Thomas Eizinger 2023-10-16 17:43:06 +11:00 committed by GitHub
parent 29c44e8576
commit c91ecbc8a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -73,7 +73,10 @@ jobs:
test "$PACKAGE_VERSION" = "$SPECIFIED_VERSION"
- name: Ensure manifest and CHANGELOG are properly updated
if: github.event_name == 'pull_request'
if: >
github.event_name == 'pull_request' &&
!startsWith(github.event.pull_request.title, 'chore') &&
!startsWith(github.event.pull_request.title, 'refactor')
run: |
git fetch origin master:master
./scripts/ensure-version-bump-and-changelog.sh

View File

@ -8,12 +8,6 @@
[PR 4547]: https://github.com/libp2p/rust-libp2p/pull/4547
<!-- Internal changes:
- Fix lints in tests
-->
## 0.44.5
- Migrate to `quick-protobuf-codec` crate for codec logic.
See [PR 4501].