[Feature][DORA Metrics][Median Lead time for changes] Filter PRs based on tags
Search before asking
- [X] I had searched in the issues and found no similar feature requirement.
Use case
Hi everyone, I've set up DevLake for an example project and realized that the median lead time for changes is very low. I've check the documentation about the calcualtion of the metrik (https://devlake.apache.org/docs/v0.21/Metrics/LeadTimeForChanges#how-is-it-calculated). Since you're taking the mean of all PRs in the time range the metric also picks up Renovatebot PRs in my case. Therefore, it looks like my team's overperforming though it's just the auto-merged Renovate PRs. Therefore, it would be great if there was a way to filter those PRs (maybe based on Tag or RegEx).
Description
Please add a new transformation to the GitLab Scope config that let's one filter PRs based on tag or Regex so that those are excluded from the metrics.
Related issues
No response
Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hi everyone,
just a quick heads up. My current workaround was to edit the Grafana graphics for "Media lead time to changes" and add the condition and head_ref NOT LIKE 'renovate/%'. This works for now but I fear that in the future I'll have to do it every time the dashboards change.
Cheers
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.