Skip to content
GitHub

GuideSettings

Slack app

In the panel: Settings › Integrations › Slack/settings/integrationsNeeds settings:write

Show the AI review status on every merge request link posted in your channels, and announce new versions with their changes and the repositories an upgrade would break.

The Holtkeeper Slack app's avatar

The app does two things:

  • Review status. When a message in a channel the app is in links a merge request of a connected repository, the app puts one emoji on the message and keeps it current as reviews run. A message that links several merge requests also gets one status reply in its thread.
  • Release announcements. New versions of a repository get one message in the channels you choose, whatever created the tags.
# widgets-reviews Merge requests that need eyes
Mira K.10:42

Could someone look at the new pager? gitlab.example.com/acme/widget-kit/-/merge_requests/1824

:hk-reviewing:1
Jon D.11:05

Fixed the flaky date test !1819

:hk-clean:1+12
Ana L.11:31

Token refresh rework, ready for eyes !1822

:hk-changes:1
Mira K.12:10

Two more for the release: !1830 and !1831

:hk-reviewing:1
holtkeeperAPP12:10
Reply in thread

:hk-clean: Clean · acme/widget-kit!1830


:hk-reviewing: Reviewing · acme/widget-kit!1831

A new push queues a review, and the emoji goes back to reviewing. Messages with several merge requests show the worst status as the reaction and every status in the thread reply.

Emoji Status When Default Fallback
:hk-reviewing: reviewing A review of the merge request is queued or running :hk-reviewing: :eyes:
:hk-clean: clean Reviewed, and no Holtkeeper finding thread is left open :hk-clean: :large_green_circle:
:hk-minor: minor Open finding threads, all of them minor or info :hk-minor: :large_orange_circle:
:hk-changes: changes An open major or critical finding thread :hk-changes: :red_circle:
:hk-skipped: skipped Not reviewed: the diff is too large or nothing is in scope :hk-skipped: :white_circle:

The defaults are Holtkeeper’s own emoji. A workspace that has not uploaded them gets the standard fallback instead, so the app works before anyone uploads anything.

A message that links several merge requests shows the worst of them: changes, then reviewing, minor, skipped, clean. After a review, the open Holtkeeper finding threads on the merge request decide the status. Resolve a thread (or fix its lines; the next review resolves it) and it no longer counts: once every thread is resolved the merge request shows clean, without waiting for a new review. Findings an earlier review left open still count after an incremental review that finds nothing new.

Slack checks the events URL the moment you save it, and Holtkeeper only answers once it has the signing secret. So create the app first, save its credentials in Holtkeeper, and turn events on last.

  1. Create the app from the manifest. At api.slack.com/apps choose Create New App › From a manifest, pick the workspace and paste the manifest below. The full manifest with the long description lives in holtkeeper/.github › slack.

    manifest.yml
    display_information:
    name: Holtkeeper
    description: 'Keeps your Git repositories in order: reviews, updates, audits and releases.'
    background_color: '#1e140d'
    features:
    bot_user:
    display_name: holtkeeper
    always_online: true
    oauth_config:
    scopes:
    bot:
    - channels:history
    - groups:history
    - reactions:write
    - chat:write
    settings:
    org_deploy_enabled: false
    socket_mode_enabled: false
    token_rotation_enabled: false
  2. Give it a face. Under Basic Information › Display Information upload the avatar and keep the background #1E140D. Slack rounds the corners itself.

  3. Install and copy the credentials. Choose Install to Workspace, then copy the Bot User OAuth Token (xoxb-…, under OAuth & Permissions) and the Signing Secret (under Basic Information › App Credentials).

  4. Save them in Holtkeeper. Open Settings › Integrations › Slack, paste both and save. They are sealed with the server’s vault key and never shown again. The section then shows the request URL to copy.

    In the panel · Settings › Integrations › Slack
    SlackNot connectedSave
    Bot tokenxoxb-••••••••••••OAuth & Permissions
    Signing secret••••••••••••••••Basic Information › App Credentials
    Request URL for Event Subscriptionshttps://holtkeeper.example.com/api/slack/eventsSealed with the vault key after saving and never shown again.
  5. Turn events on. In the Slack app, Event Subscriptions: paste the request URL (Slack verifies it at once), add the bot events message.channels and message.groups, save, and reinstall when Slack asks. You can add the same block to the manifest instead:

    manifest.yml · settings
    event_subscriptions:
    request_url: https://holtkeeper.example.com/api/slack/events
    bot_events:
    - message.channels
    - message.groups
  6. Invite the app to each channel it should watch: /invite @holtkeeper. That is all: every channel the app is in gets the status on links to merge requests Holtkeeper reviews.

Scope For
channels:history Read messages in public channels the app is in, to find merge request links
groups:history The same in private channels
reactions:write Set the review status emoji
chat:write Post status replies and release announcements; reactions work without it

Download the set from holtkeeper/.github › slack › emoji and upload each file under Customize workspace › Emoji with its own name (hk-reviewing, hk-clean, hk-minor, hk-changes, hk-skipped). Nothing else to set: the app uses them as soon as they exist. Until then it adds the standard fallback and remembers that the workspace lacks the custom one.

All five are 128 × 128 with a transparent background. Only reviewing is animated, so a channel of finished reviews does not flicker; hk-reviewing.png is its still twin for workspaces that turn animation off.

To show different emoji, enter their names under the tokens in Settings › Integrations › Slack. Overrides are used as given, without a fallback, so make sure the workspace has them. Blank fields keep the defaults; a changed emoji shows on a message the next time its status changes.

In the panel · Settings › Integrations › Slack › Status emoji
Reviewinghk-reviewing
Cleanhk-clean
Minorhk-minor
Changesrotating_light
Skippedhk-skipped

With releases.announce set for a repository, its new versions get a message in the listed channels — whether the tags come from Holtkeeper’s version step, changesets, release-please or a CI job. Tags found within ten minutes of each other make one message. The app needs chat:write and an invitation to those channels.

# releases Versions of everything we publish
< import { author="holtkeeper" time="14:20">
@acme/widget-kit 5.0.0
since 4.8.2 · Compare

Pager and DatePicker now share one focus model, and theming moves to CSS variables.

  • Pager pages with the keyboard
  • DatePicker opens on the selected month

Breaking changes

  • WidgetTheme is removed
    Set the --widget-* CSS variables instead.

Changes
Features

Bug fixes

Tasks

Will break on upgrade

Field Default What it does
channels none Slack channel ids; without any, nothing is announced
tags flow tags + packages Glob patterns of tag names such as @acme/*@*
groupWindowMinutes 10 Tags found within this many minutes of the first make one message
notes on AI notes: overview, highlights, breaking changes with migration hints
tasks on Tracker tasks named by the commits
impact on “Will break on upgrade”: connected repositories whose code uses what the version removed
language review language Language of the AI prose; code and technical terms stay in English

The first look at a repository records every existing tag as seen, so history is never announced. When the compatibility analysis is not ready, the message goes out with Compatibility analysis is still running and is updated in place once it lands. When the AI budget blocks the notes, the message goes out without them.

The app stays silent, and stores nothing, when:

  • the link’s host is not a configured forge, or no team owns the repository;
  • Merge request reviews are off for the repository;
  • the app was not invited to the channel;
  • no Slack credential is saved.

A merge request with no review yet gets no emoji until its first review is queued. When reviews are turned off after a message got its emoji, the emoji is removed at the merge request’s next review change. Messages older than 30 days stop changing.