/Snippet

What did I work on last week (or earlier than last week) in Github?

Primary LanguageSwiftMIT LicenseMIT

Snippet

SPM Build Status

Quickly extract your specific Github PRs with links last week (or earlier than last week) and convert them into markdown formats.

$ snippet --help

Snippet
--------------
OVERVIEW: Quickly extract your specific Github PRs with links last week (or earlier than last week) to markdown formats.
Specify an organization in Github. (The default is your all repositories.)

USAGE: Snippet <organization>

OPTIONS:
  --token   Register your access token for repo (Full control of private repositories) in Github using the `--token` at first.
  --week    Pass a past week number using the `--week`. (The default is `-1`)
  --help    Display available options

$ snippet Org --week -2

2017-12-11 ~ 2017-12-18 in Org
---------------------------------------
Total count: 3

* [*Mon Dec 18*] [Org/repo] [#735](https://github.com/Org/repo/pull/735) Initial commit
* [*Fri Dec 15*] [Org/repo] [#733](https://github.com/Org/repo/pull/733) Update README
* [*Fri Dec 15*] [Org/repo] [#731](https://github.com/Org/repo/pull/731) Add new function

Requirements

  • Git

Installation

On macOS

Makefile

$ git clone git@github.com:pixyzehn/Snippet.git && cd Snippet
$ make

SwiftPM

$ git clone git@github.com:pixyzehn/Snippet.git && cd Snippet
$ swift build -c release
$ cp -f .build/release/Snippet /usr/local/bin/Snippet
$ mint run pixyzehn/Snippet

On Linux

$ git clone git@github.com:pixyzehn/Snippet.git && cd Snippet
$ swift build -c release
$ cp -f .build/release/Snippet /usr/local/bin/Snippet

Contributing

  1. Fork it ( https://github.com/pixyzehn/Snippet )
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin new-feature)
  5. Create a new Pull Request

License

MIT License