mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
dummy commit 4 MAJOR-go MAJOR-ts
This commit is contained in:
parent
82d95f26f4
commit
d15135192b
1 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { cmd } from "../CommandRunner";
|
|||
import { CommitInfo } from "./CommitInfo";
|
||||
import { CommitInfoSet } from "./CommitInfoSet";
|
||||
import { CommitsProvider } from "./CommitsProvider";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
export class DefaultCommitsProvider implements CommitsProvider {
|
||||
|
||||
|
|
@ -35,7 +36,9 @@ export class DefaultCommitsProvider implements CommitsProvider {
|
|||
var logCommand = `git log --pretty="${pretty}" --author-date-order ${(startHash === '' ? endHash : `${startHash}..${endHash}`)}`;
|
||||
|
||||
if (this.changePath !== '') {
|
||||
core.info("VAGO Changepath was there: " + this.changePath);
|
||||
logCommand += ` -- ${this.changePath}`;
|
||||
core.info("VAGO logCommand: " + logCommand);
|
||||
}
|
||||
|
||||
const log = await cmd(logCommand);
|
||||
|
|
@ -83,8 +86,10 @@ export class DefaultCommitsProvider implements CommitsProvider {
|
|||
const changedFiles = await cmd(`git log --name-only --oneline ${endHash} -- ${this.changePath}`);
|
||||
changed = changedFiles.length > 0;
|
||||
} else {
|
||||
core.info("VAGO diffing: " + logCommand);
|
||||
const changedFiles = await cmd(`git diff --name-only ${startHash}..${endHash} -- ${this.changePath}`);
|
||||
changed = changedFiles.length > 0;
|
||||
core.info("VAGO changedFiles le: " + changedFiles.length);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue