We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e13f399 commit af1ab42Copy full SHA for af1ab42
scripts/retire.sh
@@ -124,7 +124,7 @@ for login in *; do
124
if [[ -n "$prInfo" ]]; then
125
# If there is a PR already
126
prNumber=$(jq .number <<< "$prInfo")
127
- epochCreatedAt=$(date --date="$(jq -r .created_at <<< "$prInfo")" +%s)
+ epochCreatedAt=$(jq '.created_at | fromdateiso8601' <<< "$prInfo")
128
if jq -e .draft <<< "$prInfo" >/dev/null && (( epochCreatedAt < noticeCutoff )); then
129
log "$login has a retirement PR due, unmarking PR as draft and commenting with next steps"
130
effect gh pr ready --repo "$ORG/$MEMBER_REPO" "$prNumber"
0 commit comments