Skip to content

Commit 9141f78

Browse files
author
kiran-garre
committed
Ignore several patterns while reading PR
1 parent 6d7cfd4 commit 9141f78

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs-generation/create-docs-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
PR_NUMBER=$1
5-
BRANCH_NAME="docs-update-pr-$PR_NUMBER"
5+
BRANCH_NAME="docs-update-for-pr-$PR_NUMBER"
66

77
# Ensure we have changes to merge
88
if [ -z "$(git status --porcelain)" ]; then

docs-generation/read-pr.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ gh pr view $PR_NUMBER --json title,body --jq '"Title: " + .title + "\nDescriptio
1010
# Include updated files
1111
echo -e "\n====== Updated files ======\n" >> $PR_FILE
1212
gh pr view $PR_NUMBER --json files --jq ".files[].path" | while read file; do
13+
case "$file" in
14+
*.lock|*-lock.*|*.min.*|dist/*|build/*|target/*)
15+
continue
16+
;;
17+
esac
1318
if [ -f "$file" ]; then
1419
echo "---- $file ----" >> $PR_FILE
1520
cat "$file" >> $PR_FILE

0 commit comments

Comments
 (0)