Skip to content

Commit 50b6b90

Browse files
committed
feat: adapt script
1 parent a3d30d7 commit 50b6b90

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

.github/generate_changelog.sh

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,19 @@ generate_categorized_changelog() {
1212

1313
echo "## What's Changed"
1414

15-
# Store all commits in a temporary file
16-
all_commits=$(mktemp)
17-
$git_log_command --pretty=format:"* %s (%h)" --reverse > "$all_commits"
18-
1915
# Features
2016
echo "### 🚀 Features"
21-
grep -i "^* feat:" "$all_commits" || true
17+
$git_log_command --pretty=format:"* %s (%h)" --reverse | grep "^* feat" || true
2218

2319
# Bug Fixes
2420
echo -e "\n### 🐛 Bug Fixes"
25-
grep -i "^* fix:" "$all_commits" || true
21+
$git_log_command --pretty=format:"* %s (%h)" --reverse | grep "^* fix" || true
2622

2723
# Documentation
2824
echo -e "\n### 📚 Documentation"
29-
grep -i "^* docs:" "$all_commits" || true
25+
$git_log_command --pretty=format:"* %s (%h)" --reverse | grep "^* docs" || true
3026

3127
# Other Changes
3228
echo -e "\n### 🔧 Other Changes"
33-
grep -i -v "^* feat:\|^* fix:\|^* docs:" "$all_commits" || true
34-
35-
# Cleanup
36-
rm "$all_commits"
37-
}
38-
39-
# Usage example:
40-
# changelog=$(generate_categorized_changelog "v1.0.0")
41-
# echo "$changelog"
29+
$git_log_command --pretty=format:"* %s (%h)" --reverse | grep -v "^* feat\|^* fix\|^* docs" || true
30+
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-template"
3-
version = "0.5.29"
3+
version = "0.5.30"
44
description = "Used to templatize python projects."
55
authors = ["Loïc Motheu <lmotheu@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)