Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / build-scripts / list-pr-differences
blob38d116c8df056462fa9b5edacbe56c2be300dd34
1 #!/bin/bash
3 set -euo pipefail
5 LOG_ARG=$1
7 git fetch origin refs/notes/*:refs/notes/*
9 NOTE_PRS=$(git log ${LOG_ARG} --show-notes=pull_request_number |
10 grep -A1 pull_request_number |
11 grep -vE '(pull_request_number|--)'|
12 awk '{ print $1 }')
14 MERGED_PRS=$(git log ${LOG_ARG} |grep 'Merge pull request'|cut -d'#' -f2|cut -d\ -f1)
16 (for word in ${NOTE_PRS} ${MERGED_PRS}; do
17 echo "$word"
18 done) | sort -u