今日の GitHub 上の Issue と Pull Request のアクティビティを出力します。
GitHub を参照しながら日報を書くときに便利な CLI です。
リリースページから最新のバイナリを取得してください。
macOS では Homebrew を使ってインストールまたはアップデートできます:
$ brew install masutaka/tap/github-nippou
$ brew upgrade github-nippou
github-nippou の開発に興味がある場合は go install でインストールできます:
$ go install github.com/masutaka/github-nippou/v4@latest
make コマンドを使ってビルドすることもできます:
$ make deps
$ make
$ ./github-nippou
$ github-nippou init
初期化により Git グローバル設定ファイルが更新されます。
github-nippou.userを追加github-nippou.tokenを追加- Gist を作成し、出力形式をカスタマイズするための
github-nippou.settings-gist-idを追加(任意)
$ github-nippou help
Print today's your GitHub activity for issues and pull requests
Usage:
github-nippou [flags]
github-nippou [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
init Initialize github-nippou settings
list Print today's your GitHub activity for issues and pull requests
open-settings Open settings url with web browser
version Print version
Flags:
-d, --debug Debug mode
-h, --help help for github-nippou
-s, --since-date string Retrieves GitHub user_events since the date (default "20231028")
-u, --until-date string Retrieves GitHub user_events until the date (default "20231028")
Use "github-nippou [command] --help" for more information about a command.
今日の GitHub 日報を取得できます。
$ github-nippou
### masutaka/github-nippou
* [v3.0.0](https://github.com/masutaka/github-nippou/issues/59) by @[masutaka](https://github.com/masutaka)
* [Enable to inject settings_gist_id instead of the settings](https://github.com/masutaka/github-nippou/pull/63) by @[masutaka](https://github.com/masutaka) **merged!**
* [Add y/n prompt to sub command \`init\`](https://github.com/masutaka/github-nippou/pull/64) by @[masutaka](https://github.com/masutaka) **merged!**
* [Add sub command \`open-settings\`](https://github.com/masutaka/github-nippou/pull/65) by @[masutaka](https://github.com/masutaka) **merged!**
* [Dockerize](https://github.com/masutaka/github-nippou/pull/66) by @[masutaka](https://github.com/masutaka) **merged!**
以下のプロジェクトが github-nippou をライブラリとして利用しています:
- https://github.com/MH4GF/github-nippou-web
- github-nippou の Web アプリ版
- https://github.com/NoritakaIkeda/GitJournal
- github-nippou の出力を GitHub Discussion に投稿できる Web アプリ
必要に応じてリスト出力の形式をカスタマイズできます。設定は Gist に保存されます。
github-nippou init を実行すると Gist が作成され、その ID が github-nippou.settings-gist-id に追加されます。
デフォルトの設定はこちらで確認できます。
| プロパティ | 型 | 説明 |
|---|---|---|
subject |
string |
リポジトリ名を表します。 |
| プロパティ | 型 | 説明 |
|---|---|---|
user |
string |
Issue または Pull Request の作成者のユーザー名を表示します。 |
title |
string |
Issue または Pull Request のタイトルを表示します。 |
url |
string |
Issue または Pull Request の URL を表示します。 |
status |
string | nil |
dictionary.status の形式を利用してステータスを表示します。 |
| プロパティ | 型 | 説明 |
|---|---|---|
closed |
string |
Issue または Pull Request がクローズされたときに表示されます。 |
merged |
string |
Pull Request がマージされたときに表示されます。Pull Request のみに適用されます。 |
github-nippou は GitHub の List events for the authenticated user API を使用しています。
This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
上記の通り、取得されるイベントには 30 秒から 6 時間の遅延が生じる場合があります。
🔗 REST API endpoints for events - GitHub Docs
Only events created within the past 30 days will be included. Events older than 30 days will not be included (even if the total number of events in the timeline is less than 300).
github-nippou は過去の日報を作成することもできますが、取得できるイベントは過去 30 日以内かつ最大 300 件までです。
- フォークする ( https://github.com/masutaka/github-nippou/fork )
- フィーチャーブランチを作成する (
git checkout -b my-new-feature) - 変更をコミットする (
git commit -am 'Add some feature') - ブランチにプッシュする (
git push origin my-new-feature) - Pull Request を作成する
contrib.rocks で作成。
- いつも日報書くときに使っているスクリプトをGem化した | マスタカの ChangeLog メモ
- github-nippou v0.1.1 released | マスタカの ChangeLog メモ
- github-nippou v1.1.0 and v1.1.1 released | マスタカの ChangeLog メモ
- github-nippou v1.2.0 released | マスタカの ChangeLog メモ
- 社内勉強会で github-nippou v2.0.0 をライブリリースした | マスタカの ChangeLog メモ
- github-nippou v3.0.0 released | マスタカの ChangeLog メモ
- github-nippou という gem を golang で書き直したという発表をした - Feedforce Developer Blog
- github-nippou を golang で書き換えて v4.0.1 リリースしてました | マスタカの ChangeLog メモ
- github-nippou のリリースを gox+ghr の手動実行から、tagpr+goreleaser の自動実行に変えた | マスタカの ChangeLog メモ
- github-nippou の Web 版を App Router + Go + Vercel で作った | Hirotaka Miyagi
- github-nippou のリリース時に formula ファイルも自動更新するようにした | マスタカの ChangeLog メモ
- github-nippou 10 周年 🎉 | マスタカの ChangeLog メモ