Open sanjay-kv opened 1 month ago
Yeah, we can add this but do you think showing this much data, isn't it too much?
This give more transparency and easy to spot spams.
Im not sure we are using REST API rn, which would be very heavy considering all the data to pulled , maybe lets started with level and commits.
If no one is working on this then I can give this a try. @sanjay-kv
sure @Vyomrana02 go ahead
Hello @sanjay-kv I am using this API:- https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28, Can you tell which info you need to display. the sample object is like
[
{
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/243",
"repository_url": "https://api.github.com/repos/girlscript/gssoc-website-new",
"labels_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/243/labels{/name}",
"comments_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/243/comments",
"events_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/243/events",
"html_url": "https://github.com/girlscript/gssoc-website-new/pull/243",
"id": 2311846194,
"node_id": "PR_kwDOGslmZs5wRjwB",
"number": 243,
"title": "Changing the stats #241",
"user": {
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
},
"labels": [
{
"id": 6974982733,
"node_id": "LA_kwDOGslmZs8AAAABn73KTQ",
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/labels/gssoc",
"name": "gssoc",
"color": "d93f0b",
"default": false,
"description": ""
}
],
"state": "closed",
"locked": false,
"assignee": {
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
},
"assignees": [
{
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
}
],
"milestone": null,
"comments": 0,
"created_at": "2024-05-23T03:11:02Z",
"updated_at": "2024-05-23T03:55:08Z",
"closed_at": "2024-05-23T03:55:08Z",
"author_association": "CONTRIBUTOR",
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/pulls/243",
"html_url": "https://github.com/girlscript/gssoc-website-new/pull/243",
"diff_url": "https://github.com/girlscript/gssoc-website-new/pull/243.diff",
"patch_url": "https://github.com/girlscript/gssoc-website-new/pull/243.patch",
"merged_at": "2024-05-23T03:55:08Z"
},
"body": "\r\nI changed into\r\n27000+ registration\r\n\r\n17000+ participants\r\n\r\n20+ countries\r\n200+ institutions\r\n205 + projects\r\n\r\nand also changed 2023 -> 2024 in index.js",
"reactions": {
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/243/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/243/timeline",
"performed_via_github_app": null,
"state_reason": null,
"score": 1
},
{
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/issues/172",
"repository_url": "https://api.github.com/repos/ChromeGaming/Community-Page",
"labels_url": "https://api.github.com/repos/ChromeGaming/Community-Page/issues/172/labels{/name}",
"comments_url": "https://api.github.com/repos/ChromeGaming/Community-Page/issues/172/comments",
"events_url": "https://api.github.com/repos/ChromeGaming/Community-Page/issues/172/events",
"html_url": "https://github.com/ChromeGaming/Community-Page/pull/172",
"id": 2309857951,
"node_id": "PR_kwDOLy5V2c5wKsA9",
"number": 172,
"title": "Adding leaderboard using api as said in issue #170",
"user": {
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
},
"labels": [
{
"id": 6868163494,
"node_id": "LA_kwDOLy5V2c8AAAABmV_bpg",
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/labels/enhancement",
"name": "enhancement",
"color": "a2eeef",
"default": true,
"description": "New feature or request"
},
{
"id": 6875333108,
"node_id": "LA_kwDOLy5V2c8AAAABmc1B9A",
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/labels/gssoc",
"name": "gssoc",
"color": "387CF6",
"default": false,
"description": ""
},
{
"id": 6875337110,
"node_id": "LA_kwDOLy5V2c8AAAABmc1Rlg",
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/labels/level2",
"name": "level2",
"color": "5F1F6D",
"default": false,
"description": ""
},
{
"id": 6947057708,
"node_id": "LA_kwDOLy5V2c8AAAABnhOwLA",
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/labels/Approved",
"name": "Approved",
"color": "006b75",
"default": false,
"description": ""
}
],
"state": "closed",
"locked": false,
"assignee": {
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
},
"assignees": [
{
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
}
],
"milestone": null,
"comments": 1,
"created_at": "2024-05-22T08:05:20Z",
"updated_at": "2024-05-24T23:54:57Z",
"closed_at": "2024-05-24T23:54:57Z",
"author_association": "CONTRIBUTOR",
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/pulls/172",
"html_url": "https://github.com/ChromeGaming/Community-Page/pull/172",
"diff_url": "https://github.com/ChromeGaming/Community-Page/pull/172.diff",
"patch_url": "https://github.com/ChromeGaming/Community-Page/pull/172.patch",
"merged_at": "2024-05-24T23:54:57Z"
},
"body": "## PR Description 📜\r\n\r\nAdding leaderboard using api\r\nFixes #170 \r\n\r\n<hr>\r\n \r\n## Mark the task you have completed ✅\r\n\r\n<!----Please delete options that are not relevant. In order to tick the check box just but x inside them for example [x] like this----->\r\n\r\n- [x] I follow [CONTRIBUTING GUIDELINE](https://github.com/GameSphere-MultiPlayer/Community-Page/blob/main/.github/CONTRIBUTING_GUIDELINE.md) & [CODE OF CONDUCT](https://github.com/GameSphere-MultiPlayer/Community-Page/blob/main/.github/CODE_OF_CONDUCT.md) of this project.\r\n- [ ] I have performed a self-review of my own code or work.\r\n- [x] I have commented my code, particularly in hard-to-understand areas.\r\n- [x] My changes generates no new warnings.\r\n- [x] I have followed proper naming convention showed in [CONTRIBUTING GUIDELINE](https://github.com/GameSphere-MultiPlayer/Community-Page/blob/main/.github/CONTRIBUTING_GUIDELINE.md)\r\n- [ ] I have added screenshot for review.\r\n\r\n\r\n<hr>\r\n## Add your screenshots(Optional) 📸\r\n\r\n![image](https://github.com/GameSphere-MultiPlayer/Community-Page/assets/87069619/038cb852-6940-4b45-9144-83eaf06a8c52)\r\n\r\n\r\n\r\n--- \r\n<br>\r\n\r\n## Thank you soo much for contributing to our repository 💗",
"reactions": {
"url": "https://api.github.com/repos/ChromeGaming/Community-Page/issues/172/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/ChromeGaming/Community-Page/issues/172/timeline",
"performed_via_github_app": null,
"state_reason": null,
"score": 1
},
{
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/242",
"repository_url": "https://api.github.com/repos/girlscript/gssoc-website-new",
"labels_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/242/labels{/name}",
"comments_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/242/comments",
"events_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/242/events",
"html_url": "https://github.com/girlscript/gssoc-website-new/pull/242",
"id": 2309582717,
"node_id": "PR_kwDOGslmZs5wJwGh",
"number": 242,
"title": "Done Changing the stats #241",
"user": {
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
},
"labels": [
{
"id": 3742425946,
"node_id": "LA_kwDOGslmZs7fEONa",
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/labels/documentation",
"name": "documentation",
"color": "0075ca",
"default": true,
"description": "Improvements or additions to documentation"
},
{
"id": 6974982733,
"node_id": "LA_kwDOGslmZs8AAAABn73KTQ",
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/labels/gssoc",
"name": "gssoc",
"color": "d93f0b",
"default": false,
"description": ""
}
],
"state": "closed",
"locked": false,
"assignee": {
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
},
"assignees": [
{
"login": "Vyomrana02",
"id": 87069619,
"node_id": "MDQ6VXNlcjg3MDY5NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/87069619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vyomrana02",
"html_url": "https://github.com/Vyomrana02",
"followers_url": "https://api.github.com/users/Vyomrana02/followers",
"following_url": "https://api.github.com/users/Vyomrana02/following{/other_user}",
"gists_url": "https://api.github.com/users/Vyomrana02/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vyomrana02/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vyomrana02/subscriptions",
"organizations_url": "https://api.github.com/users/Vyomrana02/orgs",
"repos_url": "https://api.github.com/users/Vyomrana02/repos",
"events_url": "https://api.github.com/users/Vyomrana02/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vyomrana02/received_events",
"type": "User",
"site_admin": false
}
],
"milestone": null,
"comments": 0,
"created_at": "2024-05-22T05:09:43Z",
"updated_at": "2024-05-22T14:15:51Z",
"closed_at": "2024-05-22T14:15:51Z",
"author_association": "CONTRIBUTOR",
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/pulls/242",
"html_url": "https://github.com/girlscript/gssoc-website-new/pull/242",
"diff_url": "https://github.com/girlscript/gssoc-website-new/pull/242.diff",
"patch_url": "https://github.com/girlscript/gssoc-website-new/pull/242.patch",
"merged_at": "2024-05-22T14:15:51Z"
},
"body": "@sanjay-kv \r\nAs Discussed in https://github.com/girlscript/gssoc-website-new/pull/240 I have created issue #241\r\n\r\nI Changed\r\n27000+ registration\r\n\r\n17000+ participants\r\n\r\n20+ countries\r\n200+ institutions\r\n205 + projects\r\n\r\n",
"reactions": {
"url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/242/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/girlscript/gssoc-website-new/issues/242/timeline",
"performed_via_github_app": null,
"state_reason": null,
"score": 1
}
]
This is my PR list. And UI Should be like table format as of https://gssoc.devxprite.tech/user/pandeyji711 code base: https://github.com/devXprite/gssoc-leaderboard ?
Hello @sanjay-kv the repo you told of girlscript-dashboard is private and I am unable to access it and I got the points that you mentioned in the video.
i will add you into the repo.
Hello @sanjay-kv I have Implemented the code as per the need, Below is short video on it to check it out.
https://github.com/girlscript/gssoc-website-new/assets/87069619/99d34c5f-d7cd-46b8-a869-20aafea1f485
Also I have genrated github API token for my testing so I need some env var name which I can embedd in my code which points to that token.
@Vyomrana02
The development is good, i was wondering can we exactly replicate the below page https://gssoc.devxprite.tech/user/pandeyji711
the above link page is damn good with tables and graphs of contribution this gives more information. I will provide you the env var
Hi @Vyomrana02 How this going, i havent got any reply on the above.
Hello @sanjay-kv everything going good stuck with some other office work. I had used other GitHub api and the person is using other api so changing and building whole code which I had written.
thanks. sorry for the trouble.
Hello @sanjay-kv there are many types of api that we can create for getting GitHub stats but for the graph that @devXprite is using is not known to me and also tried many to get that same Json object. Is there anyway that we can connect with devxprite for the api details?
He is using much complex scenario, if you can implement the remaining except the graph part. that would be great. i will try to reach out to him
Except the graph part all things are already implemented as seen in above video shared me @sanjay-kv .
Could you send the PR with video . We will review and merge .
@sanjay-kv send pr with video but pr fail due to build fail cause not allowing me to edit footer and header file.
any idea how to fix the build issue?
I am seeing this
This branch has conflicts that must be resolved Only those with write access to this repository can merge pull requests. Conflicting files components/Footer.js components/Navbar.js
I think I don't have access to write inside footer and navbar js. And also will see logs and will revert back.
Would like to add more details when user click over here. @khAja13
we can remove the PR list , as it doesn't help much
https://gssoc.devxprite.tech/user/pandeyji711
code base: https://github.com/devXprite/gssoc-leaderboard