grimoirelab-gitee / grimoirelab-perceval-gitee

GrimoireLab: Bundle of Perceval backends for Gitee
GNU General Public License v3.0
3 stars 5 forks source link

How to add demography_min_date and demography_max_date for PR and issues #11

Closed shanchenqi closed 2 years ago

shanchenqi commented 2 years ago

In git_demo_index, there are demography_min_date and demography_max_date, which determine the first time and the last time when the person has submitted code to determine the attraction/retention of the repository. The detail is in https://chaoss.biterg.io/app/kibana#/dashboard/Overview?_g=h@44136fa&_a=h@9b19fb9. How to add this field to PR and issue?

shanchenqi commented 2 years ago

We can add "studies " message in setup.cfg like followings:

[github:pull] raw_index = github-pull_raw enriched_index = github-pull_enriched api-token =
category = pull_request sleep-for-rate = true no-archive = true _studies = [enrich_demography:github,enrichonion:github] from-date =

It is the same in issue: [github:issue] raw_index = github_raw enriched_index = github_enriched api-token = category = issue sleep-for-rate = true no-archive = true _studies = [enrich_demography:github,enrichonion:github] from-date =