Skip to content

Commit 93f07b2

Browse files
committed
more debug
1 parent 6130d3d commit 93f07b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dev-packages/size-limit-gh-action/index.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ async function run() {
129129

130130
const sizeLimitComment = await fetchPreviousComment(octokit, repo, pr);
131131

132+
if (sizeLimitComment) {
133+
core.debug('Found existing size limit comment, udpating it instead of creating a new one...');
134+
}
135+
132136
const shouldComment =
133137
isNaN(thresholdNumber) || limit.hasSizeChanges(base, current, thresholdNumber) || sizeLimitComment;
134138

@@ -175,6 +179,8 @@ async function run() {
175179
"Error updating comment. This can happen for PR's originating from a fork without write permissions.",
176180
);
177181
}
182+
} else {
183+
core.debug('Skipping comment because there are no changed.');
178184
}
179185

180186
if (status > 0) {

0 commit comments

Comments
 (0)