dosubot[bot] commented on issue #7892:
URL:
https://github.com/apache/incubator-devlake/issues/7892#issuecomment-2286687191
<!-- Answer -->
To format a blueprint file to include both the `gitextractor` and
`customize` plugins to collect filenames from GHE commits, you can structure it
as follows:
```ts
const blueprint = [
[
{
plugin: 'gitextractor',
options: {
url: 'https://github-enterprise-instance.com/your-private-repo.git',
repoId: 'github:GithubRepo:384111310',
user: 'your-username',
password: 'your-password'
},
},
{
plugin: 'customize',
options: {
transformationRules: [
{
table: 'commits',
rawDataTable: '_raw_github_commits',
rawDataParams: '{"ConnectionId":1,"RepoId":384111310}',
mapping: {
filename: 'files.filename'
}
}
]
},
},
],
];
export default blueprint;
```
In this example:
- The `gitextractor` plugin is configured to extract data from the specified
GitHub Enterprise repository.
- The `customize` plugin is included to perform additional custom
operations, such as collecting filenames from GHE commits.
Ensure that the `SKIP_COMMIT_FILES` environment variable is not set to
`true` to collect commit file data:
```plaintext
SKIP_COMMIT_FILES=false
```
This setting ensures that the plugin collects commit file data, including
filenames, from GHE commits
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/config-ui/src/routes/blueprint/detail/components/advanced-editor/example/gitextractor.ts)</sup><sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Plugins/gitextractor.md)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]