Skip to content

Commit 8c238cf

Browse files
committed
Build: improving PR commenting
1 parent 07fcdde commit 8c238cf

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

release.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,14 @@ const branchConfig = {
7979
[
8080
require.resolve("./release/github-prerelease"),
8181
{
82-
successComment:
83-
"This PR is part of this prerelease version for testing: ${nextRelease.version}",
82+
successComment: `
83+
This PR is part of this prerelease version for testing: \${nextRelease.version}
84+
85+
You can test it by using:
86+
\`\`\`bash
87+
npm install scriptloader-component@\${nextRelease.version}
88+
\`\`\`
89+
`,
8490
},
8591
],
8692
],

release/create-github-prerelease.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ const replaceFileText = (file, ...replaceArgs) => {
1515
replaceFileText(
1616
path.join(__dirname, "github-prerelease", "lib", "success.js"),
1717
"type:pr+is:merged",
18-
"type:pr"
18+
"type:pr+is:open"
1919
);

0 commit comments

Comments
 (0)