File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const REPOS_URL = "https://api.github.com/users/themisk84/repos" ;
2- const NEWS_SITE_COMMITS =
3- "https://api.github.com/repos/Technigo/project-news-site/pulls/214/commits" ;
42const projects = document . getElementById ( "projects" ) ;
53const profileImage = document . getElementById ( "profileImage" ) ;
64const userName = document . getElementById ( "userName" ) ;
@@ -36,7 +34,8 @@ const getRepos = () => {
3634 <h5 class="repo-item4">${ language } </h5>
3735 </div>
3836 ` ;
39- } ) ;
37+ } )
38+ . catch ( ( err ) => console . log ( err ) ) ;
4039 } ) ;
4140
4241 drawChart ( forkedRepos . length ) ;
@@ -48,7 +47,6 @@ const getRepos = () => {
4847 ) ;
4948
5049 getPullRequest ( forkedRepos ) ;
51- // getLanguages(languageURL);
5250 } ) ;
5351} ;
5452
@@ -70,7 +68,8 @@ const getPullRequest = (forkedRepos) => {
7068 document . getElementById (
7169 `${ repo . name } `
7270 ) . innerHTML += `<h4 class="repo-item5">Group assignment or not yet pulled</h4>` ;
73- } ) ;
71+ } )
72+ . catch ( ( err ) => console . log ( err ) ) ;
7473 } ) ;
7574} ;
7675
@@ -82,8 +81,7 @@ const getCommits = (commitsURL, repo) => {
8281 document . getElementById (
8382 `${ repo . name } `
8483 ) . innerHTML += `<h4 class="repo-item5"> Number of commits: ${ data . length } </h4>` ;
85- } ) ;
84+ } )
85+ . catch ( ( err ) => console . log ( err ) ) ;
8686} ;
8787getRepos ( ) ;
88-
89- /* <h5 class="repo-item4">${data.language}</h5> */
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ a:hover {
101101 }
102102 .profile-container {
103103 width : 85% ;
104+ align-items : center;
104105 }
105106 .profile-image {
106107 width : 100% ;
You can’t perform that action at this time.
0 commit comments