mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
8 lines
234 B
Bash
Executable File
8 lines
234 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for PR in "$@"; do
|
|
gh pr diff "$PR" --patch \
|
|
| node -e 'const blob = require("fs").readFileSync("/dev/stdin", "utf-8"); console.log(blob.replace(/From [\s\S]+?\d+ files? changed,.+/g, ""))' \
|
|
> "pr_$PR.patch"
|
|
done
|