Skip to content

Commit e26702b

Browse files
[infra] try without comment (#278)
1 parent 9d2afe0 commit e26702b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/scripts/prs/checkTypeLabel.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ module.exports = async ({ core, context, github }) => {
6868
return;
6969
}
7070

71-
core.info(`>>> Creating explanatory comment on PR`);
72-
await github.rest.issues.createComment({
73-
owner,
74-
repo,
75-
issue_number: pullNumber,
76-
body: commentLines.join('\n\n'),
77-
});
71+
core.info(`>>> No type labels found.`);
72+
core.info(`>>> Comment: \n"${commentLines.join('\n\n')}"`);
73+
// core.info(`>>> Creating explanatory comment on PR`);
74+
// await github.rest.issues.createComment({
75+
// owner,
76+
// repo,
77+
// issue_number: pullNumber,
78+
// body: commentLines.join('\n\n'),
79+
// });
80+
7881
core.setFailed('>>> Failing workflow to prevent merge without passing this!');
7982
} catch (error) {
8083
core.error(`>>> Workflow failed with: ${error.message}`);

0 commit comments

Comments
 (0)