Skip to content

Commit

Permalink
In merge summary construct correct PR link
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Mar 16, 2023
1 parent 95aa2a2 commit 09dd349
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/gen-merge-summary.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/usr/bin/env bash

since="$1"
until="$(date -d "$since +7 days" +%Y-%m-%d)"
if [ $# -eq 0 ]; then
>&2 echo "gen-merge-summary.sh [SINCE] [UNTIL]"
>&2 echo "Generate a merge summary between the SINCE and UNTIL date"
>&2 echo ""
>&2 echo "Examples:"
>&2 echo " gen-merge-summary.sh 2023-01-01 2023-01-08"
>&2 echo " gen-merge-summary.sh 2023-01-01 '2023-01-01 +7 days'"
exit 1
fi

since="$(date -d "$1" +%Y-%m-%d)"
until="$(date -d "$2" +%Y-%m-%d)"

echo "# Merge summary for $since to $until"

Expand Down

0 comments on commit 09dd349

Please sign in to comment.