mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
19 lines
497 B
Bash
Executable File
19 lines
497 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
commits=$(git rev-list --ancestry-path $1...$2)
|
|
|
|
# Filter out commits made by `swc-bot`
|
|
filtered_commits=$(echo "$commits" | while read -r commit; do
|
|
author=$(git show -s --format='%an' "$commit")
|
|
if [[ "$author" != "SWC Bot" ]]; then
|
|
echo "$commit"
|
|
fi
|
|
done)
|
|
|
|
# Print the filtered commits in `$hash: $title` format
|
|
echo "$filtered_commits" | while read -r commit; do
|
|
title=$(git show -s --format='%s' "$commit")
|
|
echo "$commit: $title"
|
|
done
|