Skip to content

Review script

Heikki Honkanen edited this page Sep 7, 2017 · 2 revisions
#!/bin/bash

RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
CLEAR='\033c'
IFS=$'\n' 

while [[ true ]]; do
  printf "${CLEAR}"
  PULLS=`curl -s https://api.github.com/repos/Opetushallitus/ataru/pulls | jq -r '.[].title'`
  printf "${CYAN}Do these reviews!!!!!!\n"

  for pull in ${PULLS}; do
    printf "${GREEN}* ${RED}${pull}\n"
  done
  sleep 600
done
Clone this wiki locally