No commit activity in last 3 years
No release in over 3 years
Checks if you already done today's commit
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 1.3.0
>= 0
~> 2.14
~> 0.6.3

Runtime

~> 1.5.1
 Project Readme

github_streak_check

GitHub's user page (eg. https://github.com/yhara) shows 'Longest Streak', how many successive days the user is keep contributing.

This RubyGem provides a command to check if you have done today's contribution and optionally send an email if not.

Build Status

Installation

$ gem i github_streak_check

Usage

$ github_streak_check GITHUB_USER_NAME

Exit with status 0 if already did contribution, with 1 otherwise.

Sending alert mail

$ github_streak_check foo -m foo@example.com

This will send an notification to the given mail address. github_streak_check uses Pony's default way to send email; use /usr/sbin/sendmail if exists, then try to send with SMTP on localhost.

Run test

$ bundle install
$ rspec

Limitations

IMPORTANT: this gem does not guarantee 100% accuracy!

  • Private repos are not supported
  • Commits to forked repo are not counted unless it is merged to main repo, but github_streak_check returns OK for them, too
  • Fetches only recent 300 events, so it may fail if you make over 300 commits a day.

License

MIT