Skip to content

Feat/fetch GitHub repo#217

Open
InbarDanieli wants to merge 16 commits intoPull-Request-Community:masterfrom
InbarDanieli:feat/fetch-github-repo
Open

Feat/fetch GitHub repo#217
InbarDanieli wants to merge 16 commits intoPull-Request-Community:masterfrom
InbarDanieli:feat/fetch-github-repo

Conversation

@InbarDanieli
Copy link
Copy Markdown
Contributor

@InbarDanieli InbarDanieli commented Jun 19, 2022

What New?

  1. Added GitHub rest API to the project by adding the octokit package
  2. Added owner and repo pages to create a generic page that gets projects information depending on the URL's path

example

When entering this URL: https://pullrequest.co.il/projects/Pull-Request-Community/pull-request-community-website
you will see some of the information on the pull request community website repo

image

  • star count
  • repo name
  • top languages
  • license (if there is one)

close #137

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 19, 2022

Deploy Preview for agitated-hoover-61371e ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1f52b05
🔍 Latest deploy log https://app.netlify.com/sites/agitated-hoover-61371e/deploys/62cdc181ad97740008a87c38
😎 Deploy Preview https://deploy-preview-217--agitated-hoover-61371e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link
Copy Markdown

Preview on netlify: https://deploy-preview-217--pull-request.netlify.app/

Copy link
Copy Markdown
Collaborator

@MichalPorag MichalPorag left a comment

Choose a reason for hiding this comment

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

Great work! thank you!

Comment thread components/projectPage/projectPage.tsx Outdated
Comment thread components/projectPage/projectPage.tsx Outdated
Comment thread docs/contributing.md Outdated
Comment thread pages/projects/[owner]/[repo].tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx Outdated
Comment thread components/layout/layout.tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx
Copy link
Copy Markdown
Collaborator

@MichalPorag MichalPorag left a comment

Choose a reason for hiding this comment

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

Please stay focus on the specific task

Comment thread .github/ISSUE_TEMPLATE/bug_report.md Outdated
Comment thread CODE_OF_CONDUCT.md Outdated
* @param FullInfo
* @returns
*/
function ProjectsPage({ stars, license, languages, projectname }: githubFullinfo) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please move type to new Interface

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@MichalPorag What do you mean by that?

Comment thread components/projectPage/projectPage.tsx Outdated
Comment thread docs/contributing.md Outdated
Comment thread pages/articles.tsx Outdated
Comment thread pages/projects/[owner]/[repo].tsx
<Link shallow href="/">
<a className={className}>
<Img className="inner-logo" src="/images/logo-2.0.svg" />
<Img layout="fill" className="inner-logo" src="/images/logo-2.0.svg" />
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What layout="fill" is for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

without it i get this error
image
Also happens in master

Copy link
Copy Markdown
Collaborator

@MichalPorag MichalPorag left a comment

Choose a reason for hiding this comment

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

never mind. let's talk about that after you return.
for now, it looks good so I'm merging :)

@MichalPorag
Copy link
Copy Markdown
Collaborator

@InbarDanieli please fix conflicts so we can merge :)

@InbarDanieli
Copy link
Copy Markdown
Contributor Author

@MichalPorag conflicts have been fixed

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.

Project page

2 participants