Skip to content

Fix total_delta incorrect parse (ignoring null values)#51

Open
MariaJoaoMiraPaulo wants to merge 1 commit intoanuraag016:masterfrom
MariaJoaoMiraPaulo:total-delta-incorrect-parse
Open

Fix total_delta incorrect parse (ignoring null values)#51
MariaJoaoMiraPaulo wants to merge 1 commit intoanuraag016:masterfrom
MariaJoaoMiraPaulo:total-delta-incorrect-parse

Conversation

@MariaJoaoMiraPaulo
Copy link

@MariaJoaoMiraPaulo MariaJoaoMiraPaulo commented Apr 5, 2023

This PR fixes total_delta parse error.

When total_delta is not passed to the action, it should hold the null - the default value - inheriting the delta value in checkIfTestCoverageFallsBelowDelta method.

However, since getInput returns an empty string and not a null value, total_delta is attributed with the result of Number("") which is 0, and hence, total_delta never inherits the given delta value.

Fix total_delta parse error: total_delta default value as null was being ignored and, instead, total_delta was always parsed to 0.
@MariaJoaoMiraPaulo MariaJoaoMiraPaulo force-pushed the total-delta-incorrect-parse branch from be1403b to b127e92 Compare April 5, 2023 10:50
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.

1 participant