Skip to content

Commit 055fd86

Browse files
committed
fix: restore conditional posting of GitHub PR comments for specific branch types in release script
1 parent 46dae4a commit 055fd86

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

scripts/release.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ const getConfig = ({ gitBranchName }) => {
2828
};
2929

3030
// Only post GH PR comments for alpha, hotfix/*, and release branches.
31-
// if ( ! ["alpha", "hotfix", "release"].includes(branchType) ) {
32-
// Temporarily disable comments for all branches to prevent spam.
33-
githubConfig.successComment = false;
34-
githubConfig.failComment = false;
35-
// }
31+
if ( ! ["alpha", "hotfix", "release"].includes(branchType) ) {
32+
githubConfig.successComment = false;
33+
githubConfig.failComment = false;
34+
}
3635

3736
// Only publish alpha and release branches to NPM.
3837
const shouldPublishOnNPM = Boolean( process.env.NPM_TOKEN ) && ["alpha", "release"].includes(branchType);

0 commit comments

Comments
 (0)