Skip to content

Commit

Permalink
Add ftp repo check #945
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrndom authored and cxong committed Oct 24, 2021
1 parent 536dc38 commit 2d85c81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ const checkRepoSVN = game => {
}
}

const checkRepoFTP = game => {
if (game.repo && game.repo.startsWith("ftp://")) {
warn(`🔗 ${game.name}'s repo is on a FTP server, which cannot be opened in some browsers by default. Please change it to the project's developer web page.`)
}
}

const checkRepoAdded = game => {
if (!game.repo) return
const match = game.repo.match(/github.com\/([^/]+)\//)
Expand Down Expand Up @@ -169,6 +175,7 @@ const commonChecks = game => {
checkRepoGoogleCode(game)
checkRepoGit(game)
checkRepoSVN(game)
checkRepoFTP(game)
checkLanguageKnown(game)
checkFrameworkKnown(game)
checkHasImagesOrVideos(game)
Expand Down

0 comments on commit 2d85c81

Please sign in to comment.