Skip to content

Commit

Permalink
Turn future milestone into array
Browse files Browse the repository at this point in the history
  • Loading branch information
DanS01 committed Jun 19, 2022
1 parent 977efd7 commit d02e76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create-milestone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ else

# Get all OPEN milestones with a due date newer than the current date and time
MILESTONE_DATA=$( curl --silent -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/"${REPOSITORY}"/milestones?state=open\&sort=due_on\&direction=asc )
FUTURE_MILESTONES=$( echo $MILESTONE_DATA | jq --raw-output '.[] | select((.due_on >= '\"$LOWER_BOUND_DATETIME_REF\"') and (.due_on <= '\"$UPPER_BOUND_DATETIME_REF\"'))' )
FUTURE_MILESTONES=$( echo $MILESTONE_DATA | jq --raw-output '[ .[] | select((.due_on >= '\"$LOWER_BOUND_DATETIME_REF\"') and (.due_on <= '\"$UPPER_BOUND_DATETIME_REF\"')) ]' )

echo Future Milestones:
echo "$FUTURE_MILESTONES"
Expand Down

0 comments on commit d02e76c

Please sign in to comment.