Add typescript to danger (#2723)

* Add Typescript to Danger.js

* Additional check to ease local testing
This commit is contained in:
Félix Malfait
2023-11-27 11:21:19 +01:00
committed by GitHub
parent 875ba31a0a
commit e2e871ca32
3 changed files with 10 additions and 4 deletions

View File

@ -30,9 +30,9 @@ if (envChanged && !envDocsChanged) {
}
// CLA alert if first time contributor
if (
danger.github.pr.author_association === "FIRST_TIME_CONTRIBUTOR" ||
danger.github.pr.author_association === "NONE"
if (danger.github && danger.github.pr &&
(danger.github.pr.author_association === "FIRST_TIME_CONTRIBUTOR" ||
danger.github.pr.author_association === "NONE")
) {
markdown(getMdSection('CLA', `
Hello there and welcome to our project!

View File

@ -6,7 +6,8 @@
},
"dependencies": {
"danger-plugin-todos": "^1.3.1",
"semver": "^7.5.4"
"semver": "^7.5.4",
"typescript": "^5.3.2"
},
"devDependencies": {
"danger": "^11.3.0"

View File

@ -1051,6 +1051,11 @@ tr46@~0.0.3:
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
typescript@^5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"
integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==
undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"