Skip to content

Commit 8e5800f

Browse files
committed
Enhance changelog workflow to check for missing labels
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
1 parent 74232c7 commit 8e5800f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/changelog_verifier.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
# Enforces the update of a changelog file on every pull request
88
verify-changelog:
9-
if: github.repository == 'opensearch-project/OpenSearch'
9+
# if: github.repository == 'opensearch-project/OpenSearch'
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -27,5 +27,12 @@ jobs:
2727
continue-on-error: true
2828
- run: |
2929
if [[ ${{ steps.verify-changelog-3x.outcome }} == 'failure' && ${{ steps.verify-changelog.outcome }} == 'failure' ]]; then
30+
echo "error: Please ensure a changelog entry exists in CHANGELOG.md or CHANGELOG-3.0.md"
31+
exit 1
32+
fi
33+
34+
labels=${{ github.event.pull_request.labels.*.name }}
35+
if [[ ${{ steps.verify-changelog.outcome }} == 'success' && ! $labels =~ "backport" ]]; then
36+
echo "error: Please make sure that the PR has a backport label associated with it when making an entry to the CHANGELOG.md file"
3037
exit 1
3138
fi

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1717
- [Remote Store] Make translog transfer timeout configurable ([#12704](https://github.com/opensearch-project/OpenSearch/pull/12704))
1818
- Reject Resize index requests (i.e, split, shrink and clone), While DocRep to SegRep migration is in progress.([#12686](https://github.com/opensearch-project/OpenSearch/pull/12686))
1919
- Add support for more than one protocol for transport ([#12967](https://github.com/opensearch-project/OpenSearch/pull/12967))
20+
- Test
2021

2122
### Dependencies
2223
- Bump `org.apache.commons:commons-configuration2` from 2.10.0 to 2.10.1 ([#12896](https://github.com/opensearch-project/OpenSearch/pull/12896))

0 commit comments

Comments
 (0)