Privacy policy
PR Herald is operated by PR Herald. This policy says what PR Herald stores when you add it to Slack and connect a code host, how long it keeps it, and who processes it. Questions and requests go to felix@flixen.se.
What we store
PR Herald's records are stored in one Amazon DynamoDB table in the AWS region eu-north-1 (Europe, Stockholm); queued work and service logs are held in eu-north-1 (Europe, Stockholm). Each Slack workspace's data is kept under its own key, and every read is scoped to that workspace.
- Your Slack workspace: the workspace id, the bot's user id, the Slack user id of the person who installed PR Herald, when it was installed, and the bot token. The bot token is encrypted with AWS KMS before it is stored.
- Channel settings: the reminder hours, days and time zone a channel sets with
/prbot hours, and the review comments level (reviewsorall) it chooses with/prbot commentsor in App Home. A channel that never chose, or choseoff, has no level stored. - Personal reminder settings: the delivery, reminder kinds, hours, days, time zone and pause a linked user sets with
/prbot reminders, deleted when they unlink GitHub. For each pull request, PR Herald also keeps their Slack user id and when it last sent them a reminder DM, with that pull request's tracking record, until the record is deleted. - Subscriptions: which repositories each channel is subscribed to, the Slack user id of the person who subscribed it, and an optional reviewer team filter.
- Tracked pull requests: for each open pull request in a subscribed repository, its repository, number and title, its state, its assignees (username, display name and user id), its author's and requested reviewers' usernames, whether it is approved, its check and merge status, whether it has conflicts, the number of unresolved comments, the ids of the Slack messages PR Herald posted for it, the ids of the reviews and review comments it replied to in the card's thread with the level each reply was posted at and whether it pinged the author, and when it last sent a reminder.
- Review text in card threads (GitHub only, opt-in): only when a channel opts in, with
/prbot comments reviewsor/prbot comments allor the review comments menu in App Home, does PR Herald post GitHub review summaries into that channel's card threads, and underallalso up to 5 line comments per review, each with a short code excerpt. A channel that never chose gets no review text, only the review reply that names the reviewer and the verdict. PR Herald reads the text from GitHub when it posts or updates a reply and never stores it: it stores no review text, only the ids of the review, its comments and the reply, the reply's Slack timestamp, the level it was posted at and whether it pinged the author. When the text is edited or deleted on GitHub, or a thread is resolved, the reply is updated, and replies are deleted from Slack with the card. Reviews and comments by GitHub bot (App) accounts are never mirrored. Turning the level off stops new text; replies already posted stay until the card is deleted, except that text deleted on GitHub is still removed. The operator can turn the mirror off for the whole service. - GitHub connections: the GitHub App installation id and the login of the account or organisation it is installed on. PR Herald stores no GitHub token for an installation; it requests a short-lived one from GitHub when it needs it.
- Linked GitHub users: when someone runs
/prbot link github, their Slack user id, GitHub login and GitHub user id, when they linked, and the GitHub OAuth access and refresh tokens. The tokens are encrypted with AWS KMS before they are stored. - GitLab connections: if you connect a GitLab instance, its URL, the access token you supply (encrypted with AWS KMS), the user id of its merge bot, and a SHA-256 hash of its webhook secret.
- Short-lived records: the ids behind the buttons on each card, single-use records that stop a sign-in or connect link from being used twice, records of processed deliveries (kept 24 hours) and markers for queued work that was turned away (kept 18 days). These hold only ids and hashes.
PR Herald does not store source code, diffs, file contents, pull request descriptions or comment text. It reads the counts and statuses it shows on the card, and the review text a channel opted in to only to post it, and stores nothing else from the code host.
The PR Herald GitHub App has no Contents permission, so it cannot read your code. GitHub shows this on the App's install screen.
How long we keep it
- A merged or closed pull request's record expires 14 days after it closes. Its card, with the replies PR Herald posted in the card's thread, is deleted from Slack when it closes.
- The ids behind a card's buttons expire 14 days after the card was last posted or updated.
- A single-use link record expires one hour after the link it belongs to stops working. Links are valid for 10 minutes to 1 hour, so these records last at most about two hours.
- Expired records are removed by DynamoDB's automatic expiry, which can take a few days after the expiry time.
- When a Slack workspace removes PR Herald, its bot token is deleted at once. If the workspace has no code host connected, all of its data is deleted at once too. Otherwise the rest of its data is kept for 30 days, so a reinstall of the same workspace within 30 days restores it, and is deleted after that.
- When the PR Herald GitHub App is uninstalled from an account or organisation, PR Herald deletes that connection, its subscriptions and its tracked pull requests, and deletes their cards from Slack. When the App loses access to some repositories, their subscriptions and tracked pull requests are deleted the same way.
- A linked user's GitHub tokens and reminder settings are deleted when they run
/prbot unlink github, or when the workspace's data is deleted. - Work waiting in our message queues is kept for at most 18 days (up to 4 in the work queue and 14 more in its dead-letter queue), longer only if the operator redrives them.
- Service logs are kept for 1 month. They can contain IP addresses of requests PR Herald rejects, Slack workspace, channel and user ids, GitHub and GitLab usernames and user ids, repository names, the text of a slash command that failed, and error messages returned by Slack and the code hosts.
- When the PR Herald operator acts on a workspace's service, for example pausing it, resuming it or refreshing its cards, the action is logged, and the log line is kept for the same 1 month as other service logs. The operator's record of the action, with the reason given, is stored with the workspace's data and deleted when that data is deleted.
- Point-in-time backups can retain deleted data for up to 35 days. The DynamoDB table has point-in-time recovery turned on, so a deleted record can still exist in a backup for up to 35 days after it was deleted from the table.
What we don't do
- No analytics and no tracking. The site loads no scripts and nothing from third parties.
- No cookies, except one short-lived cookie that protects the sign-in step of adding PR Herald to Slack and of
/prbot link github. It lasts at most 10 minutes and is cleared when that step finishes. - We do not sell your data or share it with anyone except the sub-processors below.
Sub-processors
- Amazon Web Services: AWS Lambda runs PR Herald, Amazon SQS queues its work, AWS KMS encrypts tokens, AWS Systems Manager (SSM) Parameter Store holds its configuration, and Amazon CloudWatch Logs keeps its logs, all in eu-north-1 (Europe, Stockholm). Amazon DynamoDB stores its data in eu-north-1 (Europe, Stockholm).
- Slack: where PR Herald posts cards and receives commands and button presses.
- GitHub: where PR Herald reads pull requests and receives webhooks.
If you connect a GitLab instance, it is also a sub-processor.
Deletion and other requests
Removing PR Herald from your Slack workspace and uninstalling the GitHub App deletes your data as described above. To have your data deleted sooner, to ask what we hold about you, or for any other privacy question, contact felix@flixen.se.
Changes
If this policy changes, the new version will be published on this page.