This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. 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.
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters