weekly_digest

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 7 Imported by: 0

README

weekly_digest

Weekly digest on your GitHub repository 📆

Inspired by probot/weekly-digest.

Features

When you get the Weekly Digest, and installed it, you can get this information:

  • Issues created in the last one week
    • Open Issues
    • Closed Issues
    • Noisy Issue
    • Liked Issue
  • Pull requests opened, updated, or merged in the last pull request
    • Opened Pull Requests
    • Updated Pull Requests
    • Merged Pull Requests
  • Commits made in the master branch, in the last week
  • Contributors, adding contributions in the last week
  • Stargazers, or the fans of your repositories, who really loved your repo
  • Releases, of the project you are working on

usage

$ git clone github.com/yangwenmai/weekly_digest
$ cd weekly_digest
$ go run github_weekly_disgest.go --access_token=<your personal github access_token> --owner=yangwenmai --repo=weekly_digest --end_date="2019-02-19 08:00:00" --interval=7

或者:

$ export access_token=xxx
$ sh run.sh

Run at 12:00 in every week:

$ crontab -e
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:$PATH
0 12 * * 1 source ~/.zshrc; cd /xxx/weekly_digest && sh +x run.sh >> run.log 2>&1

Note

  • You can export access_token=xxx in your ~/.zshrc or ~/bash_profile
  • You must be set SHELL=/bin/bashPATH=XXXsource ~/.zshrc in crontab.

Reference

  1. Github Pull Request API
  2. Create Your Personal Access Token

Credits

This project is developed and maintained by yangwenmai.

I would like to thanks abhijeetps for this project. ❤️

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL