We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a0bb5f commit 428c21eCopy full SHA for 428c21e
dangerfile.js
@@ -1,6 +1,6 @@
1
// inspire by reacts dangerfile
2
// danger has to be the first thing required!
3
-const { danger, markdown } = require('danger');
+const { danger, markdown, message } = require('danger');
4
const { exec } = require('child_process');
5
const { loadComparison } = require('./scripts/sizeSnapshot');
6
@@ -167,6 +167,9 @@ async function reportBundleSize() {
167
}
168
169
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
+
173
switch (dangerCommand) {
174
case 'prepareBundleSizeReport':
175
prepareBundleSizeReport();
0 commit comments