File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
dev-packages/size-limit-gh-action Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,10 @@ async function run() {
129
129
130
130
const sizeLimitComment = await fetchPreviousComment ( octokit , repo , pr ) ;
131
131
132
+ if ( sizeLimitComment ) {
133
+ core . debug ( 'Found existing size limit comment, udpating it instead of creating a new one...' ) ;
134
+ }
135
+
132
136
const shouldComment =
133
137
isNaN ( thresholdNumber ) || limit . hasSizeChanges ( base , current , thresholdNumber ) || sizeLimitComment ;
134
138
@@ -175,6 +179,8 @@ async function run() {
175
179
"Error updating comment. This can happen for PR's originating from a fork without write permissions." ,
176
180
) ;
177
181
}
182
+ } else {
183
+ core . debug ( 'Skipping comment because there are no changed.' ) ;
178
184
}
179
185
180
186
if ( status > 0 ) {
You can’t perform that action at this time.
0 commit comments