Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ function _getSHA(
}

let commit = envs?.BUILD_SOURCEVERSION ?? null;
const skip_merge_commit_from_pr = Boolean(envs?.SYSTEM_SKIP_MERGE_COMMIT_FROM_PR);

if (_getPR(inputs, output)) {
if (!skip_merge_commit_from_pr && _getPR(inputs, output)) {
const mergeCommitRegex = /^[a-z0-9]{40} [a-z0-9]{40}$/;
const mergeCommitMessage = childProcess
.execFileSync("git", ["show", "--no-patch", "--format=%P"])
Expand Down Expand Up @@ -176,5 +177,6 @@ export function getEnvVarNames() {
"SYSTEM_PULLREQUEST_PULLREQUESTNUMBER",
"SYSTEM_TEAMFOUNDATIONSERVERURI",
"SYSTEM_TEAMPROJECT",
"SYSTEM_SKIP_MERGE_COMMIT_FROM_PR",
];
}