mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-11 15:40:14 +00:00
chore(changelog): Tweak changelog with rebase command, ignore refs in target (#1786)
* fix: ignore refs/head/ from github.ref * chore: update changelog text with rebase command * fix: skip merge commits as they are not informative * chore: reorder release text to look better truncated
This commit is contained in:
parent
af729fe863
commit
94c4761b28
17
.github/workflows/changelog.py
vendored
17
.github/workflows/changelog.py
vendored
@ -42,10 +42,10 @@ CHANGELOG_TITLE = "{tag}: {pretty}"
|
|||||||
CHANGELOG_FORMAT = """\
|
CHANGELOG_FORMAT = """\
|
||||||
{handwritten}
|
{handwritten}
|
||||||
|
|
||||||
From previous `{target}` version `{prev}` there have been the following changes. **One package per new version shown.**
|
|
||||||
|
|
||||||
Visit [bazzite.gg](https://bazzite.gg) for more information and to download Bazzite.
|
Visit [bazzite.gg](https://bazzite.gg) for more information and to download Bazzite.
|
||||||
|
|
||||||
|
From previous `{target}` version `{prev}` there have been the following changes. **One package per new version shown.**
|
||||||
|
|
||||||
### Major packages
|
### Major packages
|
||||||
| Name | Version |
|
| Name | Version |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
@ -58,6 +58,15 @@ Visit [bazzite.gg](https://bazzite.gg) for more information and to download Bazz
|
|||||||
| **[HHD](https://github.com/hhd-dev/hhd)** | {pkgrel:hhd} |
|
| **[HHD](https://github.com/hhd-dev/hhd)** | {pkgrel:hhd} |
|
||||||
|
|
||||||
{changes}
|
{changes}
|
||||||
|
|
||||||
|
### How to update
|
||||||
|
For current users, type the following to rebase to this version:
|
||||||
|
```bash
|
||||||
|
# For this branch (if latest):
|
||||||
|
bazzite-rollback-helper rebase {target}
|
||||||
|
# For this specific image:
|
||||||
|
bazzite-rollback-helper rebase {curr}
|
||||||
|
```
|
||||||
"""
|
"""
|
||||||
HANDWRITTEN_PLACEHOLDER = """\
|
HANDWRITTEN_PLACEHOLDER = """\
|
||||||
This is an automatically generated changelog for release `{curr}`."""
|
This is an automatically generated changelog for release `{curr}`."""
|
||||||
@ -287,6 +296,10 @@ def get_commits(prev_manifests, manifests, workdir: str):
|
|||||||
if not commit:
|
if not commit:
|
||||||
continue
|
continue
|
||||||
hash, short, subject = commit.split(" ", 2)
|
hash, short, subject = commit.split(" ", 2)
|
||||||
|
|
||||||
|
if subject.lower().startswith("merge"):
|
||||||
|
continue
|
||||||
|
|
||||||
out += (
|
out += (
|
||||||
COMMIT_FORMAT.replace("{short}", short)
|
COMMIT_FORMAT.replace("{short}", short)
|
||||||
.replace("{subject}", subject)
|
.replace("{subject}", subject)
|
||||||
|
4
.github/workflows/generate_release.yml
vendored
4
.github/workflows/generate_release.yml
vendored
@ -22,7 +22,9 @@ jobs:
|
|||||||
- name: Get target
|
- name: Get target
|
||||||
id: get-target
|
id: get-target
|
||||||
run: |
|
run: |
|
||||||
echo "target=${{ github.event.inputs.target || github.ref }}" > $GITHUB_OUTPUT
|
TARGET="${{ github.event.inputs.target || github.ref }}"
|
||||||
|
TARGET="${TARGET##*/}"
|
||||||
|
echo "target=$TARGET" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Generate Release Text
|
- name: Generate Release Text
|
||||||
id: generate-release
|
id: generate-release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user