Skip to content

Commit

Permalink
Trigger changelog test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt committed Nov 30, 2023
1 parent b1ffb4b commit 1e2d08d
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [opened, edited, synchronize, reopened, closed]
# Only execute on the main branches (feature branches are excluded)
branches:
- changelog-action
- master
# Uyuni patches
- 'Uyuni-[0-9]+.[0-9]+'
Expand Down Expand Up @@ -77,13 +78,17 @@ jobs:
BZ_TOKEN: ${{ secrets.BUGZILLA_TOKEN }}
run: |
pip install python-bugzilla~=3.2.0
CHANGED_FILES=$(git diff --name-only \
${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }})
# Tracker file can be retrieved from the OBS/IBS API
# by calling 'osc api /issue_trackers/' (with authentication)
python .github/workflows/changelogs/changelogs.py \
--tracker-file .github/workflows/changelogs/trackers.xml \
--git-repo uyuni-project/uyuni \
--pr-number ${{ github.event.pull_request.number }} \
${{ steps.changelogs.outputs.all }}
$CHANGED_FILES
# Warns the user if they merged the PR, but the changelog test failed
warn_user_if_merged:
Expand Down
Empty file added java/myfile
Empty file.
21 changes: 21 additions & 0 deletions java/spacewalk-java.changes.asd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- My changelog entry
- My very long changelog entry. My very long changelog entry. My very long changelog entry. My very long changelog entry.
- This is a
multi-line entry
- This is a multi-line entry
with wrong indentation

- Another entry
- Entry with wrong indentation
- Entry with multiple whitespaces
- Mistyped tracker here (bsv#1231231)
- not capitalized
- This is a multi-line
entry with wrong
spacing after punctuation,characters
- Yet another entry
- Another mistyped tracker (sc#1231231)
- Entry with trailing whitespaces
- This is a multi-line
entry. with wrong
capitalization after a full stop.
5 changes: 5 additions & 0 deletions java/spacewalk-java.changes.asd2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- My bugfix (bsc#1231231) with a multi-line
changelog entry
- Valid bug tracker (bsc#1216509)
- Valid bug trackers (bsc#1215813, bsc#1214463)
- Another valid bug tracker, according to IBS/OBS trackers (bnc#1216509)
Empty file added web/myfile
Empty file.
Empty file added web/spacewalk-web.changes.ax
Empty file.

0 comments on commit 1e2d08d

Please sign in to comment.