This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up for codeowners transformation
- Loading branch information
1 parent
76dc195
commit 585b41f
Showing
10 changed files
with
81 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
rush-plugins/rush-metadata-plugin/config/project-metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ | ||
"purpose": "d", | ||
"pointOfContact": "d", | ||
"projectGroup": "d", | ||
"purpose": "l", | ||
"pointOfContact": ["j", "k", "l"], | ||
"projectGroup": "k", | ||
"targetRuntime": "node", | ||
"riskLevel": 0, | ||
"productLine": "", | ||
"environmentVars": "d" | ||
"productLine": "m" | ||
} |
3 changes: 2 additions & 1 deletion
3
rush-plugins/rush-metadata-plugin/src/defaultMetadataFields.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
rush-plugins/rush-metadata-plugin/src/transformers/outputToCodeowners.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const outputToCodeowners = (pointsOfContact: string[], outputFileLocation: string): void => { | ||
// Output to gitlab format codeowners | ||
|
||
console.log('outputting these POCs to the codeowners file: ', pointsOfContact); | ||
console.log('at location: ', outputFileLocation); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { IMetadataField } from "./metadataField"; | ||
import { IMetadataField } from './metadataField'; | ||
|
||
export interface IPluginConfig { | ||
metadataFileName: string; | ||
metadataFileName?: string; | ||
codeownersFileName?: string; | ||
// Link to the custom schema for this metadata object (generated by this plugin) | ||
metadataSchema?: string; | ||
fields: IMetadataField[]; | ||
} | ||
} |