mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Do commit SHA edit for pull_request*
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -59626,9 +59626,9 @@ var buildExec = function () {
|
||||
if (overrideCommit) {
|
||||
execArgs.push('-C', "" + overrideCommit);
|
||||
}
|
||||
else {
|
||||
// attempt commit detection
|
||||
execArgs.push('-C', "" + context.sha);
|
||||
else if ("" + context.eventName == 'pull_request' ||
|
||||
"" + context.eventName == 'pull_request_target') {
|
||||
execArgs.push('-C', "" + context.event.pull_request.head.sha);
|
||||
}
|
||||
if (overridePr) {
|
||||
execArgs.push('-P', "" + overridePr);
|
||||
|
||||
Reference in New Issue
Block a user