ETC

[ETC] GitHub Open Api

임호랑이 2023. 3. 17. 15:47

계정 이름으로 전체 레파지토리 가져오기
GET : https://api.github.com/users/{계정이름}/repos

https://docs.github.com/ko/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user 

 

리포지토리 - GitHub Docs

Status: 200 { "id": 1296269, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "name": "Hello-World", "full_name": "octocat/Hello-World", "owner": { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", "avatar_url": "https://github.com/images/error/octocat_hap

docs.github.com


특정 레파지토리 커밋내역 가져오기
GET : https://api.github.com/repos/{계정이름}/{리포지토리이름}/commits

https://docs.github.com/ko/rest/commits/commits?apiVersion=2022-11-28 

 

커밋 - GitHub Docs

Status: 200 [ { "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", "id": 1, "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==", "html_url": "https://github.com/octocat/Hello-World/pull/1347", "diff_url": "https://github.com/octocat/Hello-World/pull/1

docs.github.com


특정 레파지토리 사용언어 가져오기
GET : https://api.github.com/repos/{계정이름}/{리포지토리이름}/languages

https://docs.github.com/ko/rest/repos/repos?apiVersion=2022-11-28#list-repository-languages

'ETC' 카테고리의 다른 글

[ETC]웹 접근성 이란?  (2) 2023.11.22
[ETC] prisma url Error  (0) 2023.05.08
[ETC] HTTP 요청헤더  (0) 2023.01.11
[ETC] eslint 와 prettier 차이  (0) 2023.01.05
[ETC] 웹 서버 구조  (0) 2022.12.16