Skip to content

Commit

Permalink
chore: add recent (last 3 days) issues to each person's list
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Feb 12, 2024
1 parent 76ed3b5 commit 0a151d8
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions scripts/update-workflow-issue
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,43 @@ list_issues() {
gh issue list "$@" --json number --jq 'map("- #\(.number)")[]' | sort -n
}

gh issue edit -F - 728 <<EOF
update() {
if test -z "$NOOP"; then
gh issue edit -F - 728
else
cat
fi
}

update <<EOF
<!-- This file is generated by scripts/update-workflow-issue. Do not edit manually. -->
$(
issues="$(list_issues --label urgent)"
test -z "$issues" && exit 0
echo "### https://github.com/TBD54566975/ftl/labels/urgent"
echo
echo "> [!WARNING]"
echo "> These issues are urgent and need immediate attention."
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
)
Expand Down

0 comments on commit 0a151d8

Please sign in to comment.