2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-01 03:20:53 +00:00
lnbook/tools/pr_affecting_file.sh
2021-06-29 10:18:00 -04:00

9 lines
258 B
Bash

#!/bin/bash
curl -s https://api.github.com/repos/lnbook/lnbook/pulls | jq '.[]|.number' | while read pr; do
git fetch --quiet github refs/pull/$pr/head
if git show --pretty=format:'' --name-only FETCH_HEAD | grep -q $1; then
echo "PR $pr"
fi
done