Skip to content

chitacan/xprt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

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 에 μ €μž₯ν•©λ‹ˆλ‹€.

why?

About

🚒 export git, github contribution data

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published