Skip to content

Commit

Permalink
[core] Link Netlify in the danger comment (mui#6513)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Oct 19, 2022
1 parent a4fedc1 commit e195e5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dangerfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { markdown } = require('danger');
const { markdown, message } = require('danger');
const fse = require('fs-extra');
const path = require('path');
const prettier = require('prettier');
Expand Down Expand Up @@ -36,6 +36,9 @@ ${headers}\n`;
}

async function run() {
const netlifyPreview = `https://deploy-preview-${process.env.CIRCLE_PR_NUMBER}--material-ui-x.netlify.app/`;
message(`Netlify deploy preview: <a href="${netlifyPreview}">${netlifyPreview}</a>`);

switch (dangerCommand) {
case 'reportPerformance':
await reportBundleSize();
Expand Down

0 comments on commit e195e5a

Please sign in to comment.