# standupg

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

Latest version **1.1.0** (published 2020-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install standupg
pnpm add standupg
yarn add standupg
bun add standupg
```

Provides the command `standupg`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-07-10 |
| First published | 2020-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | yes |
| Author | Flavio De Stefano |
| Maintainers | kopiro |

## Links

- npm: https://www.npmjs.com/package/standupg
- npm.io page: https://npm.io/package/standupg

## Dependencies (5)

- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [moment](https://npm.io/package/moment.md) ^2.27.0
- [fastify](https://npm.io/package/fastify.md) ^3.0.0
- [googleapis](https://npm.io/package/googleapis.md) ^52.1.0
- [@octokit/rest](https://npm.io/package/@octokit/rest.md) ^18.0.0

## Recent versions

- 1.1.0 (latest) — 2020-07-10
- 1.0.0 — 2020-07-09

## README

# 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:

- go to https://console.cloud.google.com/home/dashboard
- create a new project
- configure oauth consent screen
- get client-id and client-secret

#### 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.

| name                         | description                                           | defval |
| ---------------------------- | ----------------------------------------------------- | ------ |
| GITHUB_TOKEN                 | a personal github/ghe access token to access the PRs  | `null` |
| GITHUB_USER                  | your github username                                  | `null` |
| GITHUB_BASE                  | optional ghe base url to use instead of github.com    | `null` |
| GITHUB_OWNER                 | repo owner where to look for prs                      | `null` |
| GITHUB_REPO                  | repo name where to look for prs                       | `null` |
| GITHUB_VALID_LABELS          | pr labels to transpose in the message                 | `null` |
| GOOGLE_CLIENT_ID             | google app client-id used to fetch events             | `null` |
| GOOGLE_CLIENT_SECRET         | google app client-secret used to fetch events         | `null` |
| GOOGLE_EMAIL                 | your google email used to filter attendees            | `null` |
| GOOGLE_EMAIL                 | your google email                                     | `null` |
| CALENDAR_MAX_ATTENDEES_SHOWN | max number of attendes shown in the event description | 3      |
| CALENDAR_ATTENDEES_ALIAS     | JSON 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`

---
_Source: https://npm.io/package/standupg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
