Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the case where only a single file changed. #17

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

clalancette
Copy link
Collaborator

If only a single file changed, then the shortstat will contain the phrase 'file' instead of 'files', which our regex didn't pick up properly.

Once we have that in place, we should then also present it as 'file' properly in the HTML.

This commit fixes both of those problems.

If only a single file changed, then the shortstat will
contain the phrase 'file' instead of 'files', which our
regex didn't pick up properly.

Once we have that in place, we should then also present
it as 'file' properly in the HTML.

This commit fixes both of those problems.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Copy link
Collaborator

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regex is complicated

@mjcarroll mjcarroll merged commit a5f56bc into main Sep 18, 2023
14 checks passed
@mjcarroll mjcarroll deleted the clalancette/fix-single-file-change branch September 18, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants