Open
Conversation
TereseClaesson
approved these changes
Mar 2, 2022
TereseClaesson
left a comment
There was a problem hiding this comment.
A clear, well structured and consistent kod, with good comments. Easy to follow your code and it looks great. Well done!
| .then((data) => { | ||
| const technigoRepo = data.filter( | ||
| // FILTERS MY FORKED REPOS ONLY TO DESPLAY THE ONES NAMNED "project-" | ||
| (repo) => repo.name.includes('project-') && repo.fork |
There was a problem hiding this comment.
You have done a great job and I see that you have used includes(),I will learn from that ;) It's also possible to use startsWith() when searching for 'projects-', that is what i did in my project.
|
|
||
| //DOM SELECTOR | ||
| const projects = document.getElementById('projects-container') | ||
| //FETCH API AND FILTERS REPO. INJECTS REPO URL, NAME, DEF BRANCH, PUSHED DATE AND COMMIT |
| const GITHUB_USER_API = `https://api.github.com/users/${username}` | ||
| const GITHUB_REPOS_API = `https://api.github.com/users/${username}/repos` | ||
|
|
||
| //FETCH API TO PROFILE. INJECTS PIC,USERNAME,BIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.