https://github.com/jarred-sumner/bun-gh-issues-count
https://github.com/jarred-sumner/bun-gh-issues-count
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jarred-sumner/bun-gh-issues-count
- Owner: Jarred-Sumner
- Created: 2023-12-15T02:38:03.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:40:43.000Z (over 1 year ago)
- Last Synced: 2025-04-17T10:58:19.614Z (2 months ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bun-gh-issues-count
Prints a counter like this to a `$DISCORD_WEBHOOK_URL` every day:
## Usage
Run the script one-off to make sure it works:
```sh
bun index.ts
```Schedule it to run every day at 1pm on macOS:
```sh
bun make-launchd.ts
```It saves state into a .sqlite file in the current directory.
### Configuration
Expects a .env file like this:
```sh
REPO=oven-sh/bun
GITHUB_TOKEN=ghp_1234567890
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/123/1234567890
```Note that `$GITHUB_TOKEN` is a personal access token, but it doesn't need any scopes authorized.