xprt
git, github μ κΈ°μ¬ν λ΄μ, νλμ λ°μ΄ν°λ‘ λ§λ€κΈ°.
prerequisites
- nodejs β¬οΈ
v8.0.0
- git β¬οΈ
v2.0.0
- git-extras
install
$ npm install -g xprt
commands
git <repos_dir>
git summary λͺ
λ Ήμ΄λ₯Ό repos_dir
λλ ν 리μ μμΉν μ μ₯μλ³λ‘ μννκ³ , json (git.json
) μΌλ‘ μ μ₯ν©λλ€.
repos_dir
λλ ν 리λ μλμ κ°μ΄ ꡬμ±λμ΄ μμ΄μΌ ν©λλ€.
<repos_dir>
βββ repo1
β βββ .git
β βββ files...
βββ repo2
β βββ .git
β βββ files...
βββ repo3
βββ .git
βββ files...
example
{
"created": "2018-10-27T16:05:01.752Z",
"git": [{
"project": "firejabber",
"commits": "163",
"files": "19",
"lines": "3157",
"authors": {
"commit": [
{
"name": "chitacan",
"value": "163",
"ratio": "100.0%"
}
],
"line": [
{
"name": "chitacan",
"value": "3157",
"ratio": "100.0%"
}
]
}
}, ...]
}
github
μμ±ν (authored
) μ΄μ, μ½λ©νΈ (commented
), 리뷰 (reviewed
) λ₯Ό μ νν github org μμ κ°μ Έμ json (github.json
) μΌλ‘ μ μ₯ν©λλ€.
example
{
"created": "2018-10-27T16:05:01.752Z",
"authored": [{
"owner": "awesome",
"repo": "ohno",
"user": "chitacan",
"title": "hooray",
"number": 48,
"state": "closed",
"comments": 1,
"reactions": {
"url": "https://api.github.com/repos/awesome/ohno/issues/48/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0
},
"created_at": "2015-04-08T07:35:11Z",
"is_pr": true
}, ...],
"commented": [{
"owner": "awesome",
"repo": "ohno",
"user": "chitacan",
"title": "hooray",
"number": 48,
"state": "closed",
"comments": [
{
"user": "chitacan",
"created_at": "2015-02-23T08:25:12Z"
}
],
"reactions": {
"url": "https://api.github.com/repos/awesome/ohno/issues/48/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0
},
"created_at": "2015-02-23T08:14:34Z",
"is_pr": true
}, ...],
"reviewed": [{
"owner": "awesome",
"repo": "ohno",
"user": "chitacan",
"title": "i'm hyped",
"number": 48,
"state": "open",
"comments": 2,
"reactions": {
"url": "https://api.github.com/repos/awesome/ohno/issues/48/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0
},
"created_at": "2018-10-08T10:00:38Z",
"is_pr": true,
"reviews": [{
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T02:18:31Z"
}, {
"user": "chitacan",
"state": "CHANGES_REQUESTED",
"submitted_at": "2018-10-10T05:41:45Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:31:57Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:32:25Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:32:38Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:32:58Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:33:12Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:33:52Z"
}, {
"user": "chitacan",
"state": "COMMENTED",
"submitted_at": "2018-10-10T11:36:17Z"
}]
}, ...]
}
star
star λ΄μμ starred.json
νμΌμ μ μ₯ν©λλ€.
example
{
"created": "2018-10-27T16:05:01.752Z",
"starred": [{
"starredAt": "2010-05-25T19:06:19Z",
"name": "scriptaculous",
"url": "https://github.com/awesome/ohno",
"languages": [{
"name": "JavaScript",
"color": "#eee"
}, ...],
"topics": [{
"name": "topic"
}, ...]
}, ...]
}
share <files...>
files
μ ν΄λΉνλ νμΌλ€μ private gist
μ μ μ₯ν©λλ€.