Skip to content

Commit 428c21e

Browse files
[core] Link Netlify in the danger comment (mui#34688)
1 parent 6a0bb5f commit 428c21e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dangerfile.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// inspire by reacts dangerfile
22
// danger has to be the first thing required!
3-
const { danger, markdown } = require('danger');
3+
const { danger, markdown, message } = require('danger');
44
const { exec } = require('child_process');
55
const { loadComparison } = require('./scripts/sizeSnapshot');
66

@@ -167,6 +167,9 @@ async function reportBundleSize() {
167167
}
168168

169169
async function run() {
170+
const netlifyPreview = `https://deploy-preview-${process.env.CIRCLE_PR_NUMBER}--material-ui.netlify.app/`;
171+
message(`Netlify deploy preview: <a href="${netlifyPreview}">${netlifyPreview}</a>`);
172+
170173
switch (dangerCommand) {
171174
case 'prepareBundleSizeReport':
172175
prepareBundleSizeReport();

0 commit comments

Comments
 (0)