githubvacations

package module
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: MIT Imports: 4 Imported by: 1

README

github-vacations

Release Software License Travis Coverage Status Go Report Card Godoc SayThanks.io

Automagically ignore all notifications related to work when you are on vacations

Just put the binary somewhere, export a GITHUB_TOKEN environment variable, and put it in your crontab:

* * * * * /path/to/github-vacations -t My-Github-Token -o SomeOrg > /dev/null 2>&1

Your notifications will be stored on %HOME/.vacations.db. You can read them when you get back by using github-vacations read.

screenshot

Enjoy your vacations! 🏖

Install

brew install caarlos0/tap/github-vacations

Documentation

Overview

Package githubvacations contains functions that help you not work when you are on vacations (or just don't want to).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	URL, Title, Repo string
}

Notification from github

func MarkWorkNotificationsAsRead

func MarkWorkNotificationsAsRead(token, org string) ([]Notification, error)

MarkWorkNotificationsAsRead checks your notifications from work and mark them as read

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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