1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-05-07 18:39:55 +02:00

telemetry for incorrect merge commit

This commit is contained in:
eric sciple 2020-05-20 19:43:07 -04:00
parent df86c829eb
commit d58a60c536
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) {