Created
May 21, 2019 07:58
-
-
Save karlding/28257b335fe948f2fe77d3a1dfade382 to your computer and use it in GitHub Desktop.
get a list of all files modified by the given PRs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ACTIVE_PRS=(290 539 554 567) | |
DIFF_FILE="output.txt" | |
echo "" >| "${DIFF_FILE}" | |
for PR in "${ACTIVE_PRS[@]}"; do | |
git fetch origin pull/"${PR}"/head:pr-"${PR}" | |
git diff --name-only develop...pr-"${PR}" | tee -a "${DIFF_FILE}" | |
done | |
sort "${DIFF_FILE}" -o "${DIFF_FILE}" -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment