Collect and display daily working hours
https://ryowk.github.io/kintai/
TZ: JST
- Fork this repository
- Create a slack channel
- Add a slack app to the channel
- Set the slack conversation id and the access token as repository secrets (see here)
- Execute workflow
kintai
(or creategh-pages
branch frommain
) - Set GitHub pages source as following
- branch:
gh-pages
- folder:
/docs
- branch:
- Post texts to the channel (see here)
- View the published page https://owner.github.io/kintai/
<sign>
posted datetime is used
<sign> <datetime>
specified datetime is used
開始
終了
YYYY-MM-DDThh:mm:ss
開始
開始 2020-01-01T12:34:56
終了
終了 2020-01-01T12:34:56
./docs/data/YYYY-MM.json
{"2020-01-01": 1.0, "2020-01-02": 2.0, "2020-01-03": 3.0}
./docs/data/display.json
{
"updated_at": "2020-01-01 00:00:00",
"months": [
{
"year_month": "2020-01",
"dates": ["2020-01-01", "2020-01-02", "2020-01-03"],
"daily_hours": [1.0, 2.0, 3.0],
"cumulative_hours": [1.0, 3.0, 6.0]
}
]
}
SLACK_TOKEN
- access token
- required:
conversations.history
SLACK_CHANNEL
- conversation id
docker-compose up