Skip to content

Commit c30a70f

Browse files
committed
don't need short hash since messages already contain PR number
1 parent 653b18e commit c30a70f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

rust/scripts/generate-workspace-changelog.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ should_include_workspace() {
108108
git log --no-merges --format="%H" $COMMIT_RANGE -- rust/main | while read -r commit_hash; do
109109
# Get commit message
110110
commit_msg=$(git log -1 --format="%s" "$commit_hash")
111-
short_hash=$(echo "$commit_hash" | cut -c1-7)
112111

113112
# Get files changed in this commit (within rust/main)
114113
files=$(git diff-tree --no-commit-id --name-only -r "$commit_hash" -- rust/main)
@@ -136,8 +135,8 @@ git log --no-merges --format="%H" $COMMIT_RANGE -- rust/main | while read -r com
136135
# Sanitize workspace name for file system (replace / with __)
137136
workspace_file=$(echo "$workspace" | tr '/' '_')
138137

139-
# Store commit in workspace category file
140-
echo "$workspace|$commit_msg|$short_hash" >> "$TEMP_DIR/$workspace_file"
138+
# Store commit in workspace category file (just message, PR# already in message)
139+
echo "$workspace|$commit_msg" >> "$TEMP_DIR/$workspace_file"
141140
done
142141

143142
# Function to generate changelog for a specific workspace
@@ -151,8 +150,8 @@ generate_workspace_changelog() {
151150
echo "### $workspace"
152151
echo ""
153152
fi
154-
sort -u "$TEMP_DIR/$workspace_file" | while IFS='|' read -r ws msg hash; do
155-
echo "* $msg (#$hash)"
153+
sort -u "$TEMP_DIR/$workspace_file" | while IFS='|' read -r ws msg; do
154+
echo "* $msg"
156155
done
157156
fi
158157
}

0 commit comments

Comments
 (0)