-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add job to enforce updates to the changelog (#483)
Co-authored-by: Tomás Grüner <[email protected]>
- Loading branch information
1 parent
97a3a43
commit 5df9284
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "Pull Request Workflow" | ||
on: | ||
merge_group: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
env: | ||
PR_URL: https://github.com/Layr-Labs/eigensdk-rs/pull/${{ github.event.number }} | ||
|
||
jobs: | ||
# Enforces the update of a changelog file on every pull request | ||
# The update in the changelog can be skipped if the pull request | ||
# includes the `changelog-ignore` label. | ||
changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check CHANGELOG.md is updated | ||
uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
skipLabels: changelog-ignore | ||
|
||
- name: Check the PR URL is included in CHANGELOG.md | ||
if: contains(github.event.pull_request.labels.*.name, 'changelog-ignore') == false | ||
run: git diff CHANGELOG.md | grep $PR_URL CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
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). | ||
|
||
Each version will have a separate `Breaking Changes` section as well. To describe in how to upgrade from one version to another if needed | ||
|
||
## [Unreleased] | ||
### Added | ||
### Changed | ||
### Breaking changes | ||
### Removed |