Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Neos21/gh-contributions

Repository files navigation

gh-contributions

GitHub の草を生やすシェルスクリプト。

gh-contributions.sh

git commit --date オプションを利用して草を生やす Bash スクリプト。

How to Use?

予め GitHub Contributions が有効になる Git ユーザ情報を設定しておく。

gh-contributions.bash を任意のリポジトリの master ブランチ (GitHub Contributions が有効になるブランチ) に配置する。

gh-contributions.bash を開き、変数 STARTEND を任意の日付に設定する。YYYY-MM-DD 形式が望ましい。

設定ができたら gh-contributions.bash を実行する。

$ bash ./gh-contributions.bash

するとカレントディレクトリの gh-contributions.md に日付を追記しつつ、1日につき1つの git commit を生成する。

あとは git push すれば OK。

gh-contribution-that-day.bash

引数で指定した日付のコミットを生成し、草を生やすシェルスクリプト。

How to Use?

予め GitHub Contributions が有効になる Git ユーザ情報を設定しておく。

gh-contributions.bash を任意のリポジトリの master ブランチ (GitHub Contributions が有効になるブランチ) に配置する。

以下のように引数でコミットを生成したい日付を指定して gh-contribution-that-day.bash を実行する。

$ bash ./gh-contribution-that-day.bash 20170120

するとカレントディレクトリの gh-contributions.md に日付を追記しつつ、1つの git commit を生成する。

あとは git push すれば OK。

Links

WTFPL

About

GitHub の草を生やす Bash スクリプト

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages