asterix314 opened a new issue, #3339: URL: https://github.com/apache/incubator-devlake/issues/3339
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Pull requests issued by automated robots do not indicate real development activity and distort the metrics. Therefore they should be removed. [CNCF/devstats](https://github.com/cncf/devstats) uses pattern-matching to detect bots. We can shamelessly snatch their pattern-list (see [here](https://github.com/cncf/devstats/blob/master/util_sql/exclude_bots.sql)) and use it in something like: ```sql select * from pull_requests where not regexp_like(author_name, 'claassistant|containersshbuilder|wasmcloud-automation|fossabot|facebook-github-whois-bot-0|' 'knative-automation|covbot|cdk8s-automation|github-action-benchmark|goreleaserbot|imgbotapp|' 'backstage-service|openssl-machine|sizebot|dependabot|cncf-ci|poiana|svcbot-qecnsdp|' 'nsmbot|ti-srebot|cf-buildpacks-eng|bosh-ci-push-pull|gprasath|zephyr-github|zephyrbot|' 'strimzi-ci|athenabot|k8s-reviewable|codecov-io|grpc-testing|k8s-teamcity-mesosphere|' 'angular-builds|devstats-sync|googlebot|hibernate-ci|coveralls|rktbot|coreosbot|' 'web-flow|prometheus-roobot|cncf-bot|kernelprbot|istio-testing|spinnakerbot|pikbot|' 'spinnaker-release|golangcibot|opencontrail-ci-admin|titanium-octobot|asfgit|appveyorbot|' 'cadvisorjenkinsbot|gitcoinbot|katacontainersbot|prombot|prowbot|travis.*bot|k8s-.*|.*-bot|' '.*-robot|bot-.*|robot-.*|.*\\[bot\\].*|.*\\[robot\\].*|.*-jenkins|jenkins-.*|.*-ci.*bot|.*-testing|' 'codecov-.*|.*clabot.*|.*cla-bot.*|.*-gerrit|.*-bot-.*|.*envoy-filter-example.*|.*cibot|.*-ci') ``` If performance becomes an issue, then a table of robot IDs can be prepared beforehand and then joined with the target table. ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
