DEV Community

Cover image for Check Your GitHub Commits with P42
Lars Grammel for P42

Posted on • Updated on • Originally published at

Check Your GitHub Commits with P42

Modernizing the code in your JavaScript repository is only the first step in maintaining a modern codebase.
It is equally important to make sure that the new code follows best practices as well.

P42 now makes this easier by reporting check results for new commits directly in GitHub. You can enable commit checks per analysis:

Enable P42 Commit Checks

A great time for this is when there are no further P42 suggestions.
At this point, the checks will pass, and any future regression will be visible in GitHub.

Once the commit checks are enabled, they will run on new commits to the default repository branch:

GitHub Checks Passing

When there are suggestions, the checks are marked as failed. The check details then contain more information about the refactoring and the suggestions, including diffs.

The P42 commit check integration into GitHub makes it easy for you to know about any modernization regressions in your code. Give P42 a try!

Discussion (0)