Skip to content

Conversation

@studio-pro
Copy link
Owner

This pull request includes the implementation of a GitHub API SDK with two main functions:

  1. getUserRepositories(username): This function fetches the list of repositories for a given GitHub username. It uses the GitHub API to retrieve and return a list of repositories associated with the specified user.

  2. getBranchCommits(username, repo, branch): This function retrieves the commit history for a specific branch in a user's repository. It employs the GitHub API to access and list all commits present in the specified branch of the repository.

Both functions utilize axios for making HTTP requests to the GitHub API, and they require a personal access token for authentication, ensuring secure API access. The functions are designed to handle errors gracefully, providing meaningful error messages in case of request failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants