Skip to content

A GitHub action that runs git diff against the base branch and checks if new @ts-nochecks are added.

License

Notifications You must be signed in to change notification settings

tanmayairbase/tscheck-action-shell

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

no new @ts-nocheck

Checks if new @ts-nocheck is introduced in a PR or not.

  • It looks at git diff between the source branch and the destination branch of a pull request
  • Then, it separates out the additions and deletions and counts the instances of @ts-nocheck in each of them
  • Finally, it would fail with exit 1 if the count in additions is more than count in deletions (which would mean the PR has introduced new @ts-nocheck isntances)

About

A GitHub action that runs git diff against the base branch and checks if new @ts-nochecks are added.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages