Skip to content

Conversation

@evamillan
Copy link
Contributor

This PR adds the API and the UI to load a list of repositories from a GitHub or GitLab organization or user. On the UI, users can schedule the retrieval of the repositories they select from the list and whether to fetch their commits, pull requests and issues.

The job to fetch the repositories uses a different job class from the default Perceval jobs. A worker with the needed parameters can be started with:

./manage.py rqworker --job-class rq.job.Job owner

The PR relies on the code from PRs 3, 4 and 5.

Adds the '/scheduler/github_owner', '/scheduler/gitlab_owner'
and '/scheduler/owner_job/<jobID>' API endpoints. They return a
list of repositories for the given GitHub or GitLab owner and
whether they are archived, forks, have issues or pull requests.

These jobs need a dedicated 'owner' worker since they use a different
class from the Perceval jobs.

Signed-off-by: Eva Millán <evamillan@bitergia.com>
Adds an option on the Schedule task modal to load a list of a
GitHub or GitLab user's repositories. The user can then select
the repositories from the list and whether to fetch its commits,
pull requests and issues, and the interval for the retrieval.

Signed-off-by: Eva Millán <evamillan@bitergia.com>
@canasdiaz
Copy link

@evamillan is this PR blocked by other PRs?

@evamillan
Copy link
Contributor Author

@canasdiaz Yes, it depends on the major scheduler refactoring one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants