DEV Community

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

Posted on • Edited on • Originally published at p42.ai

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!

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay