Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cron job: sync contributor #93

Open
SKairinos opened this issue Mar 27, 2024 · 0 comments
Open

cron job: sync contributor #93

SKairinos opened this issue Mar 27, 2024 · 0 comments

Comments

@SKairinos
Copy link
Contributor

SKairinos commented Mar 27, 2024

create a cron job to sync contributors data from github. This includes summing up points from closed issues per repo

to get the user's closed issues per repo:
https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues
to get the estimate per issues:
https://developers.zenhub.com/graphql-api-docs/getting-started/index.html#getting-an-issue
please also follow this conversation

Create the following django command to encapsulate all this functionality: python manage.py sync_contributor {ID}
The cron job should then call this command .
Here's an example of a custom command we created to summarize fixtures

See how we make and call cron jobs.

@SKairinos SKairinos changed the title pipeline: increase contributor points on issue closed cron job: sync contributor profile and points on issue closed Apr 8, 2024
@SKairinos SKairinos changed the title cron job: sync contributor profile and points on issue closed cron job: sync contributor Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants