-
-
Couldn't load subscription status.
- Fork 246
Closed
Labels
Description
Describe the solution you'd like
We need to track open pull requests (PRs) for repositories. To achieve this, we will:
-
Create a
PullRequestModel- Add a new
PullRequestmodel undergithub/models/pull_request.pyto reflect GitHub’s pull request structure. - See other similar models for better implementation.
- Reference the GitHub API documentation for PR details: GitHub REST API - Get a Pull Request
- Add a new
-
Update sync_repository to Fetch and Store PRs
- Retrieve open PRs and store them in the database.
- Ensure that the status of closed PRs is updated to match their current state on GitHub.
- Use
repository.get_pulls()from PyGithub to retrieve PRs. - Set appropriate
state,sort, anddirectionparameters for efficient data fetching. - Reference PyGithub documentation: Repository.get_pulls().
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done