Skip to content

Commit

Permalink
commitTag setting
Browse files Browse the repository at this point in the history
  • Loading branch information
SPRINX0\prochazka committed Feb 24, 2025
1 parent 34e41eb commit 47ada3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,15 @@ class CommitProcessor {
await runGitCommand(this.processor.repoPaths[repoid], `add -A`);
await runGitCommand(
this.processor.repoPaths[repoid],
`commit -m "${this.processor.config?.syncCommitPrefix} [skip ci] ${this.commit.message}" --author="${this.commit.authorName} <${this.commit.authorEmail}>" --date="${this.commit.authorDate}"`
`commit -m "${this.processor.config?.syncCommitPrefix} ${
repoid != 'config' && this.processor.config?.repos[repoid]?.commitTag
? `${this.processor.config?.repos[repoid]?.commitTag} `
: ''
} ${this.commit.message}" --author="${this.commit.authorName} <${this.commit.authorEmail}>" --date="${
this.commit.authorDate
}"`
);

if (!this.processor.processOptions.skipPush) {
await runGitCommand(this.processor.repoPaths[repoid], `push`);
}
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type FileAction = 'A' | 'D' | 'M';

export interface RepoConfig {
url: string;
commitTag?: string; // eg. [skip ci] for skipping github pipeline
}

export interface RepoIdentifier {
Expand Down

0 comments on commit 47ada3a

Please sign in to comment.