clan-core/pkgs/pending-reviews/script.sh

11 lines
389 B
Bash
Raw Normal View History

2023-11-15 12:48:52 +00:00
#!/usr/bin/env bash
set -euo pipefail
2023-12-06 15:15:42 +00:00
display_pr() { jq -r '.[] | "- \(.url) | \(.title) from @\(.user.login)"'; }
2023-11-15 12:48:52 +00:00
echo "# Review needed"
curl -s 'https://git.clan.lol/api/v1/repos/clan/clan-core/pulls?state=closed&sort=leastupdate&labels=8' | display_pr
echo "# Changes requested"
curl -s 'https://git.clan.lol/api/v1/repos/clan/clan-core/pulls?sort=leastupdate&labels=9' | display_pr