7 Commits

Author SHA1 Message Date
ec51d271e3 chore(changelog): update unreleased changelog 2025-07-02 14:41:42 +00:00
656d08d74f refactor(help): improve help extraction for scripts
All checks were successful
Auto Changelog & Release / release (push) Successful in 8s
- Standardize help section delimiters across scripts
- Update `show_help` functions to extract help text dynamically
- Enhance maintainability and readability of help-related code
2025-07-02 16:41:33 +02:00
93a3eb41fa chore(changelog): update changelog for v0.2.0
All checks were successful
Create Major Version Tag / update-major-tag (release) Successful in 4s
2025-07-02 11:59:16 +00:00
72a343db93 chore(version): update version to 0.2.0
All checks were successful
Auto Changelog & Release / release (push) Successful in 7s
2025-07-02 13:59:09 +02:00
2ca581c65a chore(changelog): update unreleased changelog 2025-07-02 11:56:56 +00:00
fb60cee748 docs(readme): update script reference in usage example
All checks were successful
Auto Changelog & Release / release (push) Successful in 7s
- Replaces the reference to `run.sh` with `bootstrap.sh` in the README
- Reflects the file rename for clarity and consistency
2025-07-02 13:56:48 +02:00
169a1feb2e chore(changelog): update unreleased changelog 2025-07-02 11:56:20 +00:00
6 changed files with 41 additions and 5 deletions

View File

@@ -4,8 +4,17 @@ All notable changes to this project will be documented in this file.
## [unreleased]
### 🚜 Refactor
- *(help)* Improve help extraction for scripts - ([656d08d](https://git.0xmax42.io/actions/deb-changelog-action/commit/656d08d74f299d3c90aebfa67eac74f37662568f))
## [0.2.0](https://git.0xmax42.io/actions/deb-changelog-action/compare/v0.1.1..v0.2.0) - 2025-07-02
### 📚 Documentation
- *(readme)* Update script reference in usage example - ([fb60cee](https://git.0xmax42.io/actions/deb-changelog-action/commit/fb60cee7482173db64f5946d493ac16d5ea6e57d))
- *(run.sh)* Update script documentation and help output - ([fd29805](https://git.0xmax42.io/actions/deb-changelog-action/commit/fd29805fa1c15310f234857362cdfaa0124051e5))
- *(script)* Improve help message layout and readability - ([b1644de](https://git.0xmax42.io/actions/deb-changelog-action/commit/b1644de411d789cb337ac250913a8aad2d53b40d))
- *(run.sh)* Clarify version reference in comments - ([f1b790d](https://git.0xmax42.io/actions/deb-changelog-action/commit/f1b790d4e3ae7d5b2d2300405f6bfdb6898dc8d2))
## [0.1.1](https://git.0xmax42.io/actions/deb-changelog-action/compare/v0.1.0..v0.1.1) - 2025-06-27

View File

@@ -9,7 +9,7 @@ This repository provides a one-liner to generate a Debian-style changelog using
You can run the generator directly from the URL:
```bash
curl -s https://git.0xmax42.io/actions/deb-changelog-action/raw/branch/main/run.sh | bash -s -- \
curl -s https://git.0xmax42.io/actions/deb-changelog-action/raw/branch/main/bootstrap.sh | bash -s -- \
--tag v2.9.1 \
--package_name my-package \
--author_name "John Doe" \

View File

@@ -1 +1 @@
0.1.1
0.2.0

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#=== HELP START ===
# run.sh – local wrapper for the “deb-changelog-action”
#
# Behaviour:
@@ -32,6 +33,7 @@
# (configs/cliff.debian.toml) is used.
# • PACKAGE_NAME, AUTHOR_NAME, AUTHOR_EMAIL are exported so the TOML template
# can reference them (e.g. {{ get_env(name="PACKAGE_NAME") }}).
#=== HELP END ===
set -euo pipefail
REPO_URL="https://git.0xmax42.io/actions/deb-changelog-action"
@@ -46,7 +48,14 @@ OUTPUT_FILE="debian/changelog"
CLIFF_CONFIG=""
# ───────────────────────────────────────────────
show_help() { sed -n '2,34p' "$0"; }
show_help() {
sed -n '/^#=== HELP START ===/,/^#=== HELP END ===/ {
/^#=== HELP START ===/d
/^#=== HELP END ===/d
s/^#//
p
}' "$0"
}
# 1 ─ Parse CLI options ─────────────────────────
while [[ $# -gt 0 ]]; do

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#=== HELP START ===
# generate-changelog.sh – generates a Debian-style changelog via git-cliff
#
# Usage:
@@ -16,6 +17,7 @@
# • Checks that the config file exists and is readable.
# • Ensures the parent directory of the output file exists (unless --debug).
# • Generates the changelog; removes a leading empty line.
#=== HELP END ===
set -euo pipefail
# ───────────────────────────────────────────────
@@ -25,7 +27,14 @@ OUT_FILE=""
DEBUG=false
# ───────────────────────────────────────────────
show_help() { sed -n '2,18p' "$0"; }
show_help() {
sed -n '/^#=== HELP START ===/,/^#=== HELP END ===/ {
/^#=== HELP START ===/d
/^#=== HELP END ===/d
s/^#//
p
}' "$0"
}
# 1 Parse CLI options
while [[ $# -gt 0 ]]; do

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#=== HELP START ===
# install-git-cliff.sh – Installs the git-cliff binary
# Usage:
@@ -22,6 +23,7 @@
# aarch64-linux-gnu / musl / apple-darwin / pc-windows-msvc
# i686-linux-gnu / musl / pc-windows-msvc
# x86_64-linux-gnu / musl / apple-darwin / pc-windows-*
#=== HELP END ===
set -euo pipefail
REPO="orhun/git-cliff"
@@ -39,7 +41,14 @@ USER_VERSION_SPECIFIED=false
# ───────────────────────────────────────────────
# 0 Help function
show_help() { sed -n '2,24p' "$0"; }
show_help() {
sed -n '/^#=== HELP START ===/,/^#=== HELP END ===/ {
/^#=== HELP START ===/d
/^#=== HELP END ===/d
s/^#//
p
}' "$0"
}
# 1 Parse options (keeps old single-arg form)
POSITIONAL=()