-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[POC] Add deploy preview to PR body #35995
Conversation
Netlify deploy previewNo updates. Bundle size report |
…/danger-enhance
I was a bit surprised by this because vale is a github action and it adds comments to the PR. To be more precise, PR from a forked repository does not receive the The danger file sounds to be a good starting point. My only concern would be about how we extend it to X and toolpad. for now it sounds more likely that it will be copy/pasted |
The example you provide uses We could write a custom script instead of using |
@siriwatknp Nice 👌
Two thoughts on this:
|
@alexfauquette Are we good to merge? do you see any blockers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I will add it to the X repo :)
For those who want, there exists a VSCode extension to run vale. So you can get the warnings in code editors. But adding comments in the file diff has two advantages:
|
Changes
docs/data/*.md
files that are created or updated and add to the comment.What I learned
At first, I tried to move this deploy preview comment to github actions but failed due to the permission scopes.
In this article, the pull request from fork does not receive the repo's secrets and will always have
read
scope when the workflow runs. Danger cannot comment on the PR, so I revert the change and just updated the existing script to grab markdown files to the comment.