klesh commented on issue #953:
URL:
https://github.com/apache/incubator-devlake/issues/953#issuecomment-1147233324
@xgdyp Excellent explanation!
But, lately,we found some factors that need to be taken into account:
1. `component` is a vague concept, it is, in most cases, a directory, but
not necessarily located at the root directory of the repo.
2. `component` might consist of several directories located in different
paths of the repo.
All of the above is true for `DevLake` itself like we would say `api`
`services` from the root directory belongs to `server` component.
So, I would suggest we modify the step 3 to:
1. create a table `component(name, path_regex)`. User would enter records
like `('server', '^(api/services)/')`
2. set `commit_files.component` to `component.name` whenever `path_regex`
matched
3. if multiple `compnents` matched, we produce a comma-seperated value for
`commit_files.component`, and user should update the `path_regex` and re-run
the task to correct the error, because it makes no sense for a file belonging
to multiple components.
--
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]