Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ Remove this section if not relevant
**[NOTICE] Bug fixes or features added to Salt require tests.**
<!-- Please review the [test documentation](https://docs.saltproject.io/en/master/topics/tutorials/writing_tests.html) for details on how to implement tests into Salt's test suite. -->
- [ ] Docs
- [ ] Changelog - https://docs.saltproject.io/en/master/topics/development/changelog.html
- [ ] Tests written/updated

RPM Changelog files are not yet required:

- [x] No changelog needed

### Commits signed with GPG?
Yes/No

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/changelogs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Changelogs

on:
pull_request:
types: [opened, edited, synchronize, reopened, closed]
branches:
- openSUSE/release/*

permissions:
contents: read
pull-requests: write

jobs:
changelog_test:
name: Changelog tests
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
with:
fetch-depth: 1

- id: files
uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c #v2.3.0
with:
filter: 'pkg/suse/changelogs/*.changes'

- name: Verify .changes file modification
if: "!contains(github.event.pull_request.body, '[x] No changelog needed')"
run: |
if [ -z "${{ steps.files.outputs.added_modified }}" ]; then
echo "error: Missing pkg/suse/changelogs/*.changes files."
exit 1
fi
echo "Found modified .changes files: ${{ steps.files.outputs.added_modified }}"
Loading