Skip to content

Commit

Permalink
[core] Link Netlify in the danger comment (mui#34688)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Oct 14, 2022
1 parent 6a0bb5f commit 428c21e
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,6 +1,6 @@
// inspire by reacts dangerfile
// danger has to be the first thing required!
const { danger, markdown } = require('danger');
const { danger, markdown, message } = require('danger');
const { exec } = require('child_process');
const { loadComparison } = require('./scripts/sizeSnapshot');

Expand Down Expand Up @@ -167,6 +167,9 @@ async function reportBundleSize() {
}

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

switch (dangerCommand) {
case 'prepareBundleSizeReport':
prepareBundleSizeReport();
Expand Down

0 comments on commit 428c21e

Please sign in to comment.