clan-core/pkgs/pending-reviews/script.sh
Jörg Thalheim 2f56c73b47
All checks were successful
checks-impure / test (pull_request) Successful in 1m5s
checks / test (pull_request) Successful in 1m36s
pending-script: add @ before username
2023-12-06 16:15:42 +01:00

11 lines
389 B
Bash

#!/usr/bin/env bash
set -euo pipefail
display_pr() { jq -r '.[] | "- \(.url) | \(.title) from @\(.user.login)"'; }
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