diff --git a/scripts/update-workflow-issue b/scripts/update-workflow-issue index aba44ec2ca..1b68a215af 100755 --- a/scripts/update-workflow-issue +++ b/scripts/update-workflow-issue @@ -4,14 +4,21 @@ list_issues() { gh issue list "$@" --json number --jq 'map("- #\(.number)")[]' | sort -n } -gh issue edit -F - 728 < $( issues="$(list_issues --label urgent)" test -z "$issues" && exit 0 - echo "### https://github.com/TBD54566975/ftl/labels/urgent" echo echo "> [!WARNING]" @@ -19,13 +26,21 @@ $( echo "$issues" ) -### Current assigned issues +### Active and recent issues $( + +if [ "$(uname -o)" = "GNU/Linux" ]; then + date="$(date -d "- 3 days" +%Y-%m-%d)" +else + date="$(date -v "-3d" +%Y-%m-%d)" +fi + gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /orgs/TBD54566975/teams/ftl-team/members | jq -r '.[].login' | grep -v dhanji | sort | while read -r member; do - echo "@$member [👀](https://github.com/TBD54566975/ftl/issues/assigned/$member)" + echo "@$member [🔎](https://github.com/TBD54566975/ftl/issues/assigned/$member)" echo list_issues -a "$member" + list_issues -s closed -S "closed:>$date" -a "$member" echo done )