You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jq '.[] | select(.user.id == 41898282) | select(.body | contains("This PR changes current filenames or deletes current files")) | .id')
64
+
jq '.[] | select(.user.id == 41898282) | select(.body | contains("This PR requires additional review attention because it affects the following areas")) | .id')
51
65
52
66
# If the comment exists, delete it
53
67
if [ ! -z "$existing_comment_id" ]; then
@@ -58,18 +72,38 @@ jobs:
58
72
fi
59
73
else
60
74
# Construct the comment body for changed files
61
-
comment_body="This PR changes current filenames or deletes current files. Make sure you have [redirects](https://developers.cloudflare.com/pages/configuration/redirects/) set up to cover the following paths:"
62
-
for path in $CHANGED_FILES; do
63
-
clean_path=$(echo $path | sed 's/"//g') # Remove quotation marks
75
+
comment_body="This PR requires additional review attention because it affects the following areas:"
76
+
77
+
# Add CHANGED_FILES logic
78
+
if [ -n "$CHANGED_FILES" ]; then
64
79
comment_body="$comment_body
65
-
- [ ] \`$clean_path\`"
66
-
done
80
+
81
+
### Redirects
82
+
This PR changes current filenames or deletes current files. Make sure you have [redirects](https://developers.cloudflare.com/pages/configuration/redirects/) set up to cover the following paths:"
83
+
for path in $CHANGED_FILES; do
84
+
clean_path=$(echo "$path" | sed 's/"//g') # Remove quotation marks
85
+
comment_body="$comment_body
86
+
- [ ] \`$clean_path\`"
87
+
done
88
+
fi
89
+
90
+
# Conditional bit for PARTIAL_FILES
91
+
if [ -n "$PARTIAL_FILES" ]; then
92
+
comment_body="$comment_body
93
+
94
+
### Partials
95
+
This PR updates partial files, which are bits of content used across multiple files.
0 commit comments