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
Fetch live PR labels to avoid stale event data, use pull-request label edits, and keep the restricted-paths review label in place until a maintainer removes it manually.
Made-with: Cursor
echo "::error::Failed to add the $REVIEW_LABEL label."
110
134
{
111
135
echo "## Restricted Paths Guard Failed"
@@ -122,6 +146,8 @@ jobs:
122
146
else
123
147
LABEL_ACTION="added"
124
148
fi
149
+
elif [ "$LABEL_ALREADY_PRESENT" = "true" ]; then
150
+
LABEL_ACTION="left in place (manual removal required)"
125
151
fi
126
152
127
153
{
@@ -137,8 +163,11 @@ jobs:
137
163
echo ""
138
164
write_matching_restricted_paths
139
165
fi
140
-
if [ "$TOUCHES_RESTRICTED_PATHS" = "true" ] && [ "$HAS_TRUSTED_SIGNAL" = "false" ]; then
166
+
if [ "$NEEDS_REVIEW_LABEL" = "true" ]; then
141
167
echo ""
142
168
echo "- **Manual follow-up**: No trusted signal was found, so \`$REVIEW_LABEL\` is required."
169
+
elif [ "$LABEL_ALREADY_PRESENT" = "true" ]; then
170
+
echo ""
171
+
echo "- **Manual follow-up**: Existing \`$REVIEW_LABEL\` was left in place intentionally because this workflow does not inspect every commit. Remove it manually after reviewing the PR for restricted-paths policy compliance."
0 commit comments