klesh opened a new pull request, #4886: URL: https://github.com/apache/incubator-devlake/pull/4886
### Summary 1. added `TryAdd/ReturnNameIfMatched` to `RegexEnricher` to simplify the usage of the helper 2. data source plugins(bitbucket in this PR) would use `RegexEnricher` to enrich the `type` and `environment` fields for `cicd_pipeline`/`cicd_task`. 3. `type`/`env` enrichment are moved into `extractors`, `pipeline_extractor` would run the RegexEnricher against the `pipeline.ref_name` since bitbucket pipelines don't have names. 4. next step: `dora.generateDeployment` would use `type`/`environment` fields to generate deployment ### Does this close any open issues? Part of #4869 ### Screenshots when `deploymentPattern=main` and `productionPattern=pipeline`, the `_tool_bitbucket_pipelines` table would produces the result like the following screenshot  -- 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]
