Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/fetch GitHub repo #217

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

InbarDanieli
Copy link
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

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

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

Copy link
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!

components/projectPage/projectPage.tsx Outdated Show resolved Hide resolved
components/projectPage/projectPage.tsx Outdated Show resolved Hide resolved
docs/contributing.md Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Outdated Show resolved Hide resolved
components/layout/layout.tsx Outdated Show resolved Hide resolved
Copy link
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

.github/ISSUE_TEMPLATE/bug_report.md Outdated Show resolved Hide resolved
CODE_OF_CONDUCT.md Outdated Show resolved Hide resolved
* @param FullInfo
* @returns
*/
function ProjectsPage({ stars, license, languages, projectname }: githubFullinfo) {
Copy link
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
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?

components/projectPage/projectPage.tsx Outdated Show resolved Hide resolved
docs/contributing.md Outdated Show resolved Hide resolved
pages/articles.tsx Outdated Show resolved Hide resolved
pages/projects/[owner]/[repo].tsx Show resolved Hide resolved
@@ -88,7 +88,7 @@ const Navbar = ({ DesHeight }) => {
</div>
<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
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
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
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
Collaborator

@InbarDanieli please fix conflicts so we can merge :)

@InbarDanieli
Copy link
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