hue-review 448 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. if [ $# -lt 3 ]; then
  3. echo "Usage: hue-review rev-list reviewer(s) summary ..." 1>&2
  4. exit 1
  5. fi
  6. RBT=`which rbt`
  7. if [ "$?" -ne "0" ]; then
  8. echo "Please install rbt from https://www.reviewboard.org/" 1>&2
  9. exit 1
  10. fi
  11. REVLIST=$1;
  12. REVRANGE=${REVLIST//\.\./:};
  13. REVIEWER=$2;
  14. SUMMARY=$3;
  15. shift 3;
  16. exec $RBT post -o --description="$(git whatchanged $REVLIST)" --target-groups=hue --target-people="$REVIEWER" --summary="$SUMMARY" $REVLIST $@