Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

feat: Moved GitHub Projects API usage from REST to GraphQL #267

Merged

Conversation

SaptarshiSarkar12
Copy link
Member

Fixes Issue

Closes #249

Changes proposed

This PR makes the following changes:

  • Adds support for GitHub Projects V2 via GraphQL migrating from REST API

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Screenshot

Screencast.from.2024-09-24.21-21-53.webm

Note to reviewers

I could not find a way to fetch only OPENED projects and, I had to fetch first 10. Further, I requested only id, title and closed. I filtered those data in terms of !closed in the ProjectsCheck section. There is a rare case that all the 10 are closed. Let me know what I should do in that case. I have one option to try a while or for loop but that would soon reach API limit.

Copy link
Member

@eddiejaoude eddiejaoude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thank you 🎉

@eddiejaoude eddiejaoude merged commit 3db9e0f into EddieHubCommunity:main Oct 1, 2024
2 checks passed
@SaptarshiSarkar12 SaptarshiSarkar12 deleted the 249-move-rest-to-graphql branch October 1, 2024 12:12
@SaptarshiSarkar12
Copy link
Member Author

@eddiejaoude Thank you Eddie for reviewing and merging my PR 😁! I got to learn more about GraphQL and how GitHub integrates it in its API.
Thank you for the opportunity to contribute 😄.

@eddiejaoude
Copy link
Member

I learnt about GraphQL from your PR also 🚀 so double thank you 🎉

@SaptarshiSarkar12
Copy link
Member Author

@eddiejaoude Most welcome 😁. Grateful to Open-Source.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub projects REST API move to GraphQL
2 participants