Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Report a security vulnerability
url: https://github.com/ChristopherPHolder/virtual-office-notifier/security/advisories/new
url: https://github.com/push-based/virtual-office-notifier/security/advisories/new
about: Please report security problems privately, not as an issue.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
- [ ] `pnpm typecheck`, `pnpm lint`, `pnpm test` and `pnpm build` pass
- [ ] Tests cover the change
- [ ] README updated if what gets posted, the configuration or the deploy changed
- [ ] New environment variables are wired through (see [CONTRIBUTING.md](https://github.com/ChristopherPHolder/virtual-office-notifier/blob/main/CONTRIBUTING.md#adding-a-configuration-variable))
- [ ] New environment variables are wired through (see [CONTRIBUTING.md](https://github.com/push-based/virtual-office-notifier/blob/main/CONTRIBUTING.md#adding-a-configuration-variable))
- [ ] Ready to ship: merging this deploys it to production
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Virtual Office Notifier

[![CI](https://github.com/ChristopherPHolder/virtual-office-notifier/actions/workflows/ci.yml/badge.svg)](https://github.com/ChristopherPHolder/virtual-office-notifier/actions/workflows/ci.yml)
[![CI](https://github.com/push-based/virtual-office-notifier/actions/workflows/ci.yml/badge.svg)](https://github.com/push-based/virtual-office-notifier/actions/workflows/ci.yml)

Posts to Slack when someone opens our Discord "virtual office" voice channel, and again when it empties out, so people know when they can jump in. On weekdays it also posts a reminder to come hang out. It also records what happens in the office channel to a Postgres database.

Expand Down Expand Up @@ -64,7 +64,7 @@ It only watches the one office channel and ignores bots. Mute, deafen and video

The fixed opened and emptied headlines are picked at random from a few phrasings. The reminder rotates through its phrasings by date, so each one comes up once before any repeats.

The original design is in [issue #1](https://github.com/ChristopherPHolder/virtual-office-notifier/issues/1).
The original design is in [issue #1](https://github.com/push-based/virtual-office-notifier/issues/1).

## How it works

Expand Down Expand Up @@ -112,7 +112,7 @@ Recording runs alongside, in its own fiber, so a slow Slack post never holds it
You'll need Node 26 (see `.nvmrc`), pnpm, a [Discord bot](#discord-bot) and a [Slack webhook](#slack-webhook).

```bash
git clone https://github.com/ChristopherPHolder/virtual-office-notifier.git
git clone https://github.com/push-based/virtual-office-notifier.git
cd virtual-office-notifier
pnpm install
cp .env.example .env # then fill in the values
Expand Down Expand Up @@ -193,7 +193,7 @@ Workers AI includes 10,000 Neurons a day for free, which covers a few hundred he

### Database

The bot records voice activity in the office channel to a Postgres database on [Supabase](https://supabase.com). It's collected now, to decide later what to use it for. The design is in [issue #10](https://github.com/ChristopherPHolder/virtual-office-notifier/issues/10).
The bot records voice activity in the office channel to a Postgres database on [Supabase](https://supabase.com). It's collected now, to decide later what to use it for. The design is in [issue #10](https://github.com/push-based/virtual-office-notifier/issues/10).

1. Create a project at <https://supabase.com/dashboard>.
2. Click **Connect**, pick the **Session pooler** connection string, and put it in `DATABASE_URL` with the database password filled in. Percent-encode any special characters in the password.
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Only the latest `main` is supported. It's what's deployed, and there are no rele

## Reporting a vulnerability

Please don't open a public issue. Report it privately through [GitHub's private vulnerability reporting](https://github.com/ChristopherPHolder/virtual-office-notifier/security/advisories/new), with what you found, how to reproduce it and what an attacker could do with it.
Please don't open a public issue. Report it privately through [GitHub's private vulnerability reporting](https://github.com/push-based/virtual-office-notifier/security/advisories/new), with what you found, how to reproduce it and what an attacker could do with it.

I'd especially like to hear about:

Expand Down
4 changes: 2 additions & 2 deletions scripts/setup-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# OS Login, and stores the provider and account names as GitHub secrets.
#
# Run from the repo root with gcloud pointed at the right project and gh logged
# in to the account that owns the repo. Also uploads the app secrets from .env.
# in to an account with admin access to the repo. Also uploads the app secrets from .env.
set -euo pipefail

REPO=ChristopherPHolder/virtual-office-notifier
REPO=push-based/virtual-office-notifier
INSTANCE=${DEPLOY_INSTANCE:-virtual-office-notifier}
ZONE=${DEPLOY_ZONE:-us-central1-a}
PROJECT_ID=${DEPLOY_PROJECT:-$(gcloud config get-value project)}
Expand Down
Loading