1.1.0 • Published 4 years ago

standupg v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

standupg

i'm bad at writing standup messages, but i'm good at coding a script that does this for me.

installation

npm -g install standupg

pre-configuration

calendar

to be able to fetch gcal events, you need to create a google app with permissions to read your calendar. to do so:

github

to be able to fetch PRs, you need to create a personal token with repo read permissions on https://github.com/settings/tokens

configuration

the package should have created a file in ~/.standup/config with a skeleton config file.

you should edit this before running the script the first time.

namedescriptiondefval
GITHUB_TOKENa personal github/ghe access token to access the PRsnull
GITHUB_USERyour github usernamenull
GITHUB_BASEoptional ghe base url to use instead of github.comnull
GITHUB_OWNERrepo owner where to look for prsnull
GITHUB_REPOrepo name where to look for prsnull
GITHUB_VALID_LABELSpr labels to transpose in the messagenull
GOOGLE_CLIENT_IDgoogle app client-id used to fetch eventsnull
GOOGLE_CLIENT_SECRETgoogle app client-secret used to fetch eventsnull
GOOGLE_EMAILyour google email used to filter attendeesnull
GOOGLE_EMAILyour google emailnull
CALENDAR_MAX_ATTENDEES_SHOWNmax number of attendes shown in the event description3
CALENDAR_ATTENDEES_ALIASJSON object to use as attendees alias mapping{}

usage

simply call

standupg

in your terminal; this will output your standup message and also write a markdown file in ~/.standupg/YYYY-MM-DD.md