Skip to content

Commit 47ada3a

Browse files
author
SPRINX0\prochazka
committed
commitTag setting
1 parent 34e41eb commit 47ada3a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/processor.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,15 @@ class CommitProcessor {
314314
await runGitCommand(this.processor.repoPaths[repoid], `add -A`);
315315
await runGitCommand(
316316
this.processor.repoPaths[repoid],
317-
`commit -m "${this.processor.config?.syncCommitPrefix} [skip ci] ${this.commit.message}" --author="${this.commit.authorName} <${this.commit.authorEmail}>" --date="${this.commit.authorDate}"`
317+
`commit -m "${this.processor.config?.syncCommitPrefix} ${
318+
repoid != 'config' && this.processor.config?.repos[repoid]?.commitTag
319+
? `${this.processor.config?.repos[repoid]?.commitTag} `
320+
: ''
321+
} ${this.commit.message}" --author="${this.commit.authorName} <${this.commit.authorEmail}>" --date="${
322+
this.commit.authorDate
323+
}"`
318324
);
325+
319326
if (!this.processor.processOptions.skipPush) {
320327
await runGitCommand(this.processor.repoPaths[repoid], `push`);
321328
}

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export type FileAction = 'A' | 'D' | 'M';
33

44
export interface RepoConfig {
55
url: string;
6+
commitTag?: string; // eg. [skip ci] for skipping github pipeline
67
}
78

89
export interface RepoIdentifier {

0 commit comments

Comments
 (0)