2025-02-02 17:46:55 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2025-02-20 17:17:05 +01:00
|
|
|
VERSION_NAME=$1
|
|
|
|
OUTPUT_FILE=$2
|
2025-03-06 17:35:08 +01:00
|
|
|
GITHUB_TOKEN=${3:-$CHANGELOG_GITHUB_TOKEN}
|
2025-02-20 17:17:05 +01:00
|
|
|
echo "Generating CHANGELOG.md entry since $VERSION_NAME to $OUTPUT_FILE"
|
2025-03-06 17:35:08 +01:00
|
|
|
timeout 90s github_changelog_generator -u PhilKes -p NotallyX --since-tag "$VERSION_NAME" \
|
|
|
|
--no-pull-requests --include-tags-regex '^v\d+(\.\d+)*$' \
|
|
|
|
--include-labels enhancement,bug --exclude-labels duplicate,question,invalid,wontfix,'already done' \
|
|
|
|
--enhancement-label "### Added Features" --bugs-label "### Fixed Bugs" \
|
|
|
|
--base "$OUTPUT_FILE" --output "$OUTPUT_FILE" --token "$GITHUB_TOKEN"
|
|
|
|
|
|
|
|
# Check if timeout caused failure
|
|
|
|
if [[ $? -eq 124 ]]; then
|
|
|
|
echo "Error: github_changelog_generator timed out" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|