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!