Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Verify source version before parsing PR #172

Merged
merged 1 commit into from Mar 9, 2020

Commits on Mar 5, 2020

  1. Verify source version before parsing PR

    Non-PR hooks can trigger builds in which the CODEBUILD_SOURCE_VERSION
    would be populated as the commit SHA. Our current logic dictates that
    that commit SHA would be passed onto CodeCov as the PR number, which
    would always be an invalid value (must be a number, true, or falsy).
    
    This updates the logic so that it will ensure that the environment
    variable being checked actually matches the "pr/" pattern before trying
    to use it. If it does not, it will return undefined.
    RoboCafaz committed Mar 5, 2020
    Copy the full SHA
    ef348ec View commit details
    Browse the repository at this point in the history