Skip to content

Commit 6673741

Browse files
committed
restore limit
1 parent f602146 commit 6673741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

monthly_summary.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ startDate="${1}"
1717
endDate="${2}"
1818

1919
# find how many commits to master there have been in the last month
20-
#commits_in_range="$(git log --since="${startDate}" --until="${endDate}" --pretty=oneline | wc -l)"
20+
commits_in_range="$(git log --since="${startDate}" --until="${endDate}" --pretty=oneline | wc -l)"
2121

2222
# Retrieve merged PRs from the given range
23-
prs=$(gh pr list --repo "$repository" --state closed --base master --search "closed:${startDate}..${endDate}" --json number,labels,title,author --limit 500) #"$((commits_in_range * 2))")
23+
prs=$(gh pr list --repo "$repository" --state closed --base master --search "closed:${startDate}..${endDate}" --json number,labels,title,author --limit "$((commits_in_range * 2))")
2424

2525
## Print PR numbers, their labels and their title
2626
#echo "$prs" | jq -r '.[] | select(.title | startswith("[Merged by Bors]")) | "PR #\(.number) - Labels: \((.labels | map(.name) | join(", ")) // "No labels") - Title: \(.title)"'
@@ -52,8 +52,8 @@ printf $'\n\nBetween %s and %s there were\n' "${yr_mth_day}" "${end_date/%T*}"
5252

5353
printf $'* %s commits to `master` and\n' "${commits_in_range}"
5454

55-
echo "First run: ${start_date} ${yr_mth}-15T23:59:59"
56-
echo "Second run: ${yr_mth}-16T00:00:00 ${end_date}"
55+
#echo "First run: ${start_date} ${yr_mth}-15T23:59:59"
56+
#echo "Second run: ${yr_mth}-16T00:00:00 ${end_date}"
5757

5858
(
5959
findInRange "${start_date}" "${yr_mth}-15T23:59:59" | sed -z 's=]\n*$=,\n='

0 commit comments

Comments
 (0)