Add danger for showing dts-critic suggestions#44430
Conversation
|
Wow, good job danger! At least you ran! (going to write a real dangerfile now) |
e8cd9ef to
b613c87
Compare
|
Thanks for the dangerfile.ts @orta. Lesson learned: it's hard to add a gitignored .js file to DT, even on purpose. |
|
Danger should say nothing when there are no suggestions (then the GitHub comment will be deleted) |
|
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
|
@orta I'll eventually remove the "no suggestions found" message, but I have to explicitly handle the case when dts-critic doesn't produce suggestions, and I wanted to make sure my predicate was working. |
|
The suggestions are only showing up on Travis for some reason. I'm going to move danger over there for now and back to pipelines when I figure out why it doesn't have suggestions. |
|
I've given it a bit of a tweak |
|
@sandersn very nice to see this being implemented :) |
|
Might need to improve dts critic to have richer line/file references, the unpkg link for aframe is |
1. only show files if more than one was edited. 2. put top-level unpkg on top-level package heading
|
All right, this is where I want it for now. Since I'm on duty this week, I'll take some time to figure out why dts-critic isn't logging suggestions on Azure so I can switch danger off of Travis. For now I want to merge this so I can see how well it works. |
* First attempt * cwd churn * cwd churn 2 * cwd churn 3 * cwd churn 4 * cwd churn 5 * cwd churn 6 * dump ls * Add a TS dangerfile * Faff with the CI * try to read suggestions * add bogus aframe change * use correct dir * handle no suggestions * delete more of aframe to get dts-critic to notice * now try yauzl * move danger to travis for now * Revert "delete more of aframe to get dts-critic to notice" This reverts commit 65ea09f. * Revert "add bogus aframe change" This reverts commit a6546bd. * first try at formatting with markdown * maybe it's a line-oriented format * rebreak aframe * Better formatting Still not best * better wording, maybe better formatting * maybe I need a space to get autonumbering * even better formatting * special-case for >5 properties * Use a summary discolosure * Adds links to unpkg and the dts * Fix the unpkg link * Better unpkg/file linking 1. only show files if more than one was edited. 2. put top-level unpkg on top-level package heading * fix formatting and single-file skip * url needs trailing / * Revert "now try yauzl" This reverts commit 08ab238. * Revert "rebreak aframe" This reverts commit 6ceed76. Co-authored-by: Orta Therox <[email protected]>
* First attempt * cwd churn * cwd churn 2 * cwd churn 3 * cwd churn 4 * cwd churn 5 * cwd churn 6 * dump ls * Add a TS dangerfile * Faff with the CI * try to read suggestions * add bogus aframe change * use correct dir * handle no suggestions * delete more of aframe to get dts-critic to notice * now try yauzl * move danger to travis for now * Revert "delete more of aframe to get dts-critic to notice" This reverts commit 65ea09f. * Revert "add bogus aframe change" This reverts commit a6546bd. * first try at formatting with markdown * maybe it's a line-oriented format * rebreak aframe * Better formatting Still not best * better wording, maybe better formatting * maybe I need a space to get autonumbering * even better formatting * special-case for >5 properties * Use a summary discolosure * Adds links to unpkg and the dts * Fix the unpkg link * Better unpkg/file linking 1. only show files if more than one was edited. 2. put top-level unpkg on top-level package heading * fix formatting and single-file skip * url needs trailing / * Revert "now try yauzl" This reverts commit 08ab238. * Revert "rebreak aframe" This reverts commit 6ceed76. Co-authored-by: Orta Therox <[email protected]>
I have no idea if this will work; this is based on an idea by @orta but I'm not using Github Actions or yarn.
(original PR is here: typescript-cheatsheets/react#225)