Skip to content

Commit 58a2a1e

Browse files
committed
fix: add missing commitMap property to Settings interface
- Add commitMap property to Settings interface in src/settings.ts - Add commitMap example configuration to sample_settings.ts - Resolves TypeScript error where commitMap was used in code but missing from type definition - Fixes type mismatch introduced in ef23755 where commitMap was added to code but not to Settings interface
1 parent b0c8f88 commit 58a2a1e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sample_settings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export default {
3232
'gitlabgroup/projectname.1': 'GitHubOrg/projectname.1',
3333
'gitlabgroup/projectname.2': 'GitHubOrg/projectname.2',
3434
},
35+
commitMap: {
36+
'gitlab-commit-hash-1': 'github-commit-hash-1',
37+
'gitlab-commit-hash-2': 'github-commit-hash-2',
38+
},
3539
conversion: {
3640
useLowerCaseLabels: true,
3741
addIssueInformation: true,

src/settings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export default interface Settings {
3535
log: boolean;
3636
};
3737
s3?: S3Settings;
38+
commitMap: {
39+
[key: string]: string;
40+
};
3841
}
3942

4043
export interface GithubSettings {

0 commit comments

Comments
 (0)