Closed paramsiddharth closed 3 years ago
@paramsiddharth Please use GitHub contribution guidelines when making a PR https://docs.github.com/en/enterprise/2.16/user/github/managing-your-work-on-github/closing-issues-using-keywords#about-issue-references
Use close
or closes
to automatically close the issue related to the PR.
@adityabisoi Thank you! I updated the PR with the Closes
keyword.
@paramsiddharth I think, we can remove the unnecessary forks
for now. The data returned is large and redundant.
@paramsiddharth I think, we can remove the unnecessary
forks
for now. The data returned is large and redundant.
Done! Now the response object contains only the username and the data obtained from the 5 endpoints.
Closes #7: Add support for more API endpoints This version supports the following endpoints:
/users/:username/repos
/users/:username/gists
/users/:username/followers
/users/:username/following
/users/:username/starred
~Additionally, the forked repositories are filtered into a separate array.~
Sample response object:
In case of a failed request, the corresponding attribute is set to
null
.I chained a
.catch(...)
at the end of the request chain to properly log other network-related errors to the prompt.