We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeecebc commit a2dda1eCopy full SHA for a2dda1e
src/main.ts
@@ -142,7 +142,12 @@ export async function run(): Promise<void> {
142
`<a href="https://github.com/peaceiris/actions-label-commenter#readme">Bot Usage</a>` +
143
`</div>\n` +
144
'\n<!-- peaceiris/actions-label-commenter -->\n';
145
- const rawCommentBody = `${commentHeader}\n\n${commentMain}\n\n${commentFooter}\n\n${commentFooterLinks}`;
+ const rawCommentBody = (() => {
146
+ if (core.isDebug()) {
147
+ return `${commentHeader}\n\n${commentMain}\n\n${commentFooter}\n\n${commentFooterLinks}`;
148
+ }
149
+ return `${commentHeader}\n\n${commentMain}\n\n${commentFooter}`;
150
+ })();
151
152
if (commentMain === '' || commentMain === void 0) {
153
core.info(`[INFO] no configuration ${parentFieldName}.body`);
0 commit comments