Skip to content

Commit 84c201a

Browse files
committed
more formatting
1 parent a6527c4 commit 84c201a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/find_labels.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ commits_in_range="$(git log --since="${startDate}" --until="${endDate}" --pretty
3333
# Retrieve merged PRs from the given range
3434
prs=$(gh pr list --repo "$repository" --state closed --base master --search "closed:${startDate}..${endDate}" --json number,labels,title,author --limit "$((commits_in_range * 2))")
3535

36-
printf $'\n\nBetween %s and %s there were\n' "${startDate}" "${endDate/%T*}"
37-
38-
printf $'* %s commits to `master` and\n' "${commits_in_range}"
39-
4036
formattedPRs="$(echo "$prs" |
4137
jq -S -r '.[] |
4238
select(.title | startswith("[Merged by Bors]")) |
@@ -126,6 +122,12 @@ reports="$(
126122
fi
127123
)"
128124

125+
printf $'### Commits to `%s` between %s and %s\n' "$(basename "${repository}")" "${startDate//T*/}" "${endDate//T*/}"
126+
127+
printf $'\n\nBetween %s and %s there were\n' "${startDate}" "${endDate/%T*}"
128+
129+
printf $'* %s commits to `master` and\n' "${commits_in_range}"
130+
129131
if [ "${forZulip}" == "true" ]
130132
then
131133
formatForZulip "${formattedPRs}"

0 commit comments

Comments
 (0)