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

Fetch repositories from a GitHub or GitLab owner #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

evamillan
Copy link
Collaborator

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 <[email protected]>
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 <[email protected]>
@canasdiaz
Copy link

@evamillan is this PR blocked by other PRs?

@evamillan
Copy link
Collaborator 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