Skip to content

Commit

Permalink
Updated issue assign script (#2252)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryli0108 authored Nov 14, 2023
1 parent e35c80c commit d3a017c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/oncallAutoAssignIssue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ today=$(date +%s)
IFS=',' read -ra parsedOncalls <<< "$ONCALL_LIST"

oncallArrLen=${#parsedOncalls[@]}
# anchor Date is Feb 21 2022 0:00
anchorDate=1677002400
# anchor Date is Nov 7 2023 10:00 PST
anchorDate=1699380000
d=$(((today - anchorDate)/60/60/24/7))
pos=`echo "$d%$oncallArrLen" | bc`
currentOncall=`echo ${parsedOncalls[$pos]}`
Expand Down

0 comments on commit d3a017c

Please sign in to comment.