Skip to content

Log more comprehensive commit information after checkout #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7478,8 +7478,8 @@ function getSource(settings) {
}
// Get commit information
const commitInfo = yield git.log1();
// Log commit sha
yield git.log1("--format='%H'");
// Log commit information
yield git.log1("--format=oneline");
// Check for incorrect pull request merge commit
yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit);
}
Expand Down
4 changes: 2 additions & 2 deletions src/git-source-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
// Get commit information
const commitInfo = await git.log1()

// Log commit sha
await git.log1("--format='%H'")
// Log commit information
await git.log1("--format=oneline")

// Check for incorrect pull request merge commit
await refHelper.checkCommitInfo(
Expand Down