Skip to content

project-github-tracker-PriscilaAlfaro#24

Open
PriscilaAlfaro wants to merge 5 commits into
Technigo:mainfrom
PriscilaAlfaro:main
Open

project-github-tracker-PriscilaAlfaro#24
PriscilaAlfaro wants to merge 5 commits into
Technigo:mainfrom
PriscilaAlfaro:main

Conversation

@PriscilaAlfaro

Copy link
Copy Markdown

@HelenaW86 HelenaW86 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

So nice to read your code Priscila! nice structure and really inspiering!!

Comment thread code/script.js
} else {
throw new Error('Request failed!')
}
} catch (error) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice that you use the error catch!

Comment thread code/script.js
<div class="general-info project-title">
<h2 class="project-name"><a href=${repo.html_url} target="_blank"><i class="fas fa-project-diagram"></i>&nbsp;&nbsp;${repo.name.toUpperCase()}<a></h2>
<h3 id="default-branch"> Default branch: ${repo.default_branch}</h3>
<h3>Main language: ${repo.language ? repo.language : "No information"}</h3>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

like that you used ? : instead of if-else, so much shorter code :)

Comment thread code/script.js
<h3>Pull requests</h3>
<h4>Total pullrequest: ${repo.allPullRequest.total_count}</h4>
${repo.allPullRequest.total_count === 0 ?
`<h4>This repository don't any have Pull Request</h4>` :

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

God that you used an alt text when there are no pull requests.

Comment thread code/script.js
}


const fetchCommitsFromPullRequest = async (repoName, pullRequestNumber) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

really nice!

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