-
Notifications
You must be signed in to change notification settings - Fork 89
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
Hacktoberfest-2022 Contributors page #203
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI seems to fail, I have rerun it because I don't seem to find any issues 🤔 But there are some other suggestions that I think should be implemented
import styles from '../styles/contributors.module.css'; | ||
|
||
export const getStaticProps = async () => { | ||
const res = await fetch('https://api.github.com/repos/WebXDAO/webXDAO.github.io/contributors'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can filter out the time using GitHub's graphql API, can you take a look into that?
This will also fix the fact that this is only checking for the repo, not the whole org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why I need to add graphql ? this is working perfectly... : )
and @mkubdev told me to use the api and fetch the data like this. That's why I did like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fine using the current method unless there are any differences/improvements using GitHub's GraphQL API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what should I do now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Panquesito7 this will only calculate the contributors of this repo not the org, also it will have all contributors not hacktoberfest contributors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krshkun Hi, yeah the task was to show only contributors from this repos. We can enhance the display with a graphql implementation later in a future feature request! (You can open it!)
@krshkodes Hey now the CI does not fail anymore... can you please re-review this and tell me what should I do now ? |
|
Sorry, misread the linked issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look good to me 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contributions!
Thanks 😊 Hey but @krshkun said me to use github graphql api to fetch all contributors data of this organization not only this repo. so maybe I will make another issue and PR for this . okay ? |
Related Issue
Closes: #193
Describe the changes you've made
I added contribution page. I use external CSS file "contributers.module.css" for styling the page. I added "contributors" button in the navbar
Type of change
What sort of change have you made:
How Has This Been Tested?
I created a local hosting to test the changes . I tested for various screen ratio to check the responsive
Checklist
Screenshots (if applicable)
Code of Conduct