telemetry for incorrect merge commit (#253)

This commit is contained in:
eric sciple
2020-05-21 11:09:16 -04:00
committed by GitHub
parent df86c829eb
commit 2ff2fbdea4
4 changed files with 218 additions and 7 deletions

View File

@ -170,7 +170,17 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
}
// Dump some info about the checked out commit
await git.log1()
const commitInfo = await git.log1()
// Check for incorrect pull request merge commit
await refHelper.checkCommitInfo(
settings.authToken,
commitInfo,
settings.repositoryOwner,
settings.repositoryName,
settings.ref,
settings.commit
)
} finally {
// Remove auth
if (!settings.persistCredentials) {