Fetch repositories from a GitHub or GitLab owner #6
Open
evamillan wants to merge 2 commits intochaoss:mainfrom
Open
Fetch repositories from a GitHub or GitLab owner #6evamillan wants to merge 2 commits intochaoss:mainfrom
evamillan wants to merge 2 commits intochaoss:mainfrom
Conversation
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>
|
@evamillan is this PR blocked by other PRs? |
Contributor
Author
|
@canasdiaz Yes, it depends on the major scheduler refactoring one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
The PR relies on the code from PRs 3, 4 and 5.