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

Add support for GitHub Pull Request entities #825

Open
arkid15r opened this issue Feb 14, 2025 · 4 comments · May be fixed by #845
Open

Add support for GitHub Pull Request entities #825

arkid15r opened this issue Feb 14, 2025 · 4 comments · May be fixed by #845
Assignees
Labels

Comments

@arkid15r
Copy link
Collaborator

Describe the solution you'd like

We need to track open pull requests (PRs) for repositories. To achieve this, we will:

  1. Create a PullRequest Model

    • Add a new PullRequest model under github/models/pull_request.py to 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
  2. 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, and direction parameters for efficient data fetching.
    • Reference PyGithub documentation: Repository.get_pulls().
@github-project-automation github-project-automation bot moved this to Backlog in Project Nest Feb 14, 2025
@arkid15r arkid15r moved this from Backlog to Todo in Project Nest Feb 14, 2025
@arkid15r
Copy link
Collaborator Author

Nikhil Patil (space-techy) wants to implement this one but I'm not sure about the username to tag.

@Raghavg18
Copy link
Contributor

@arkid15r can u assign this to me?

@Yashgupta9330
Copy link
Collaborator

@arkid15r I want to work on these issue can you assign me this issue

@space-techy
Copy link
Collaborator

space-techy commented Feb 14, 2025

Hello @arkid15r Yes I am working on it!
Sorry for the late reply!
Also this is my username : @space-techy

@arkid15r arkid15r moved this from Todo to In progress in Project Nest Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

4 participants