digitomize icon indicating copy to clipboard operation
digitomize copied to clipboard

[Feature]: Integrate GitHub Repositories Fetch Feature

Open Sahilll15 opened this issue 1 year ago • 9 comments

Is your feature request related to a problem? Please describe.

We need to implement a feature that allows users to add a GitHub repository URL and fetch repository details. The goal is to provide users with the ability to input a GitHub repository URL, and our system will fetch and display the repository's information using the GitHub API.

Describe the solution you'd like

Acceptance Criteria:

Input Field for Repository URL:

A user interface element (e.g., input field) where users can enter their GitHub repository URL. Fetch Repository Data:

When the user submits the URL, the system should use the GitHub API to fetch details about the repository. The GitHub Personal Access Token should be used for authentication. Display Repository Details:

Handle cases where the repository URL is invalid or the API request fails. Display appropriate error messages to the user. Security:

Ensure that the GitHub Personal Access Token is kept secure and not exposed in client-side code. Additional Notes:

Consider using a backend service to securely handle the GitHub API requests. Ensure that the feature is tested for different types of repositories and handles edge cases gracefully. Tasks:

Create the user interface for inputting the GitHub repository URL. Implement the functionality to fetch repository details using the GitHub API. Display the fetched data in a user-friendly format. Implement error handling and validation for the input URL. Test the feature and handle any edge cases.

Alternatives

No response

Additional Context

No response

Are you interested in contributing?

  • [X] I'd like to work on this issue

Code of Conduct

  • [X] I have used the search function to check if an issue already exists
  • [X] I agree to follow this project's Code of Conduct

Which program are you contributing in?

gssoc

Sahilll15 avatar Aug 06 '24 05:08 Sahilll15

Hello @Sahilll15! 🌟 Thanks a bunch for creating an issue. Your input is invaluable, and we're eager to collaborate with you to address the matter. Keep up the fantastic work!

Don't forget to hit the :star: star button :wink:

[!TIP] Don't forget to check our Contributing Guidelines, PR Guidelines and Issue Guidelines for more details.

Website | Discord | Twitter | Instagram | Linkedin

github-actions[bot] avatar Aug 06 '24 05:08 github-actions[bot]

@Sahilll15 For this the user needs to generate their own auth token and provide to the website, so that everytime we could fetch the user required repo details. Right?

mk0380 avatar Aug 14 '24 16:08 mk0380

No we can fetch users repo and stuff just by there username i have done this earlier

On Wed, 14 Aug 2024 at 10:17 PM, Mayank Kumar @.***> wrote:

@Sahilll15 https://github.com/Sahilll15 For this the user needs to generate their own auth token and provide to the website, so that everytime we could fetch the user required repo details. Right?

— Reply to this email directly, view it on GitHub https://github.com/digitomize/digitomize/issues/1059#issuecomment-2289296753, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2BH5O5Z4LLU627HPICQYDLZROCYVAVCNFSM6AAAAABMBR5W2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBZGI4TMNZVGM . You are receiving this because you were mentioned.Message ID: @.***>

Sahilll15 avatar Aug 14 '24 16:08 Sahilll15

Can you please tell me as what is the use of Access Token in the case then, when we can easily fetch the public repos details directly without going for personla tokens. And how are we planning to make sure the user enters his own GitHub ID and not others, maybe with the help of compulsory GitHub login. Please let me know.

mk0380 avatar Aug 14 '24 16:08 mk0380

i guess in that case we cannot verify that but for now it can work right or else we can also implement Github Oauth in the application

Sahilll15 avatar Aug 19 '24 18:08 Sahilll15

we are not even checking if it is a valid username or not in the leetcode/code forces username we can work through with GitHub repos and other content like that before we can integrate the whole GitHub oauth

Sahilll15 avatar Aug 19 '24 18:08 Sahilll15

I guess you can just let me work on this if it works and if it does not moving ahead u may not merge this PR but let me try integrating it if it works or not

Sahilll15 avatar Aug 19 '24 18:08 Sahilll15

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

github-actions[bot] avatar Aug 30 '24 00:08 github-actions[bot]