Slack bot to unfurl Chromium development URLs
Перейти к файлу
David Sanders e86491c828
ci: add test workflow (#16)
2024-10-24 20:44:36 -04:00
.github ci: add test workflow (#16) 2024-10-24 20:44:36 -04:00
.husky build: add husky and lint-staged 2021-04-06 18:57:10 -07:00
src build: drop node-fetch dependency (#15) 2024-10-24 21:44:09 +02:00
.gitignore refactor: port to @slack/bolt for signature verification 2021-04-06 19:15:32 -07:00
.prettierrc.json refactor: port to typescript 2021-04-06 18:53:16 -07:00
LICENSE chore: add LICENSE file to match package.json (#1) 2023-02-03 15:57:57 -08:00
README.md docs: update example source.chromium.org URLs (#14) 2024-10-24 21:18:39 +02:00
babel.config.js fix: improve crsource url parsing and add tests 2021-06-16 11:41:09 -07:00
package.json ci: add test workflow (#16) 2024-10-24 20:44:36 -04:00
tsconfig.json refactor: port to typescript 2021-04-06 18:53:16 -07:00
yarn.lock build: drop node-fetch dependency (#15) 2024-10-24 21:44:09 +02:00

README.md

Chromium Helper

This bot, when deployed as a Heroku app, will unfurl Chromium related URLs to provide context in Slack.

The URLs this bot currently supports are:

  • https://crbug.com/12345
  • https://bugs.chromium.org/p/chromium/issues/detail?id=12345
  • https://chromium-review.googlesource.com/c/chromium/src/+/123456
  • https://source.chromium.org/chromium/chromium/src/+/main:chrome/app/main_dll_loader_win.cc
  • https://source.chromium.org/chromium/chromium/src/+/main:chrome/app/main_dll_loader_win.cc;l=101
  • https://source.chromium.org/chromium/chromium/src/+/main:chrome/app/main_dll_loader_win.cc;l=101-110

Installation

Add to Slack

What does it look like?

image

Configuration

The following environment variables need to be set:

  • SLACK_TOKEN: Slack bot token
  • SLACK_SIGNING_SECRET: Slack app signing secret
  • SLACK_BOT_ID: User id of Slack app

Routes

/slack/events: Used by Slack, you probably don't want to call this yourself.