Alerting: Linear as a destination type, opening one issue per incident
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
Start in packages/backend/src/services/alerts/AlertDestinationDelivery.ts, especially composeLinkUrl, then trace how existing destination types such as Slack are configured and delivered through the alerts services. Read the webhook delivery/signature path and the integration configuration used to connect Slack. Done means a connectable linear destination can create an issue for a trigger, comment on renotify/resolve, link the incident, and composeLinkUrl yields an incident-specific URL.
索引モデルが issue の本文から書いたものです。
説明
Written by an AI agent (Claude) on behalf of @jasonkuhrt.
A team that tracks its work in Linear can't send Maple alerts there. Linear isn't a destination type, so getting an incident into Linear means writing and hosting your own webhook endpoint.
Here's what that takes today. It's the Worker we're about to build for Heartbeat:
// Behind a `webhook` destination. Check x-maple-signature first.
// Linear accepts a caller-chosen UUID on create, so ids derived from
// incidentId and x-maple-delivery-key make Maple's retries harmless.
switch (body.eventType) {
case "trigger":
// Linear issueCreate in the team's Triage, id = uuid(incidentId).
case "renotify":
case "resolve":
// Linear commentCreate on issue uuid(incidentId),
// id = uuid(x-maple-delivery-key).
case "test":
// nothing
}
It also needs a Linear API key in the Worker's secrets, so every issue shows the key's owner as its creator, not Maple.
What we'd like to write instead, after connecting Linear once in Maple's integrations the way Slack is connected:
yield* Maple.AlertDestination("linear", {
type: "linear",
name: "Engineering triage",
team_id: "…", // the Linear team whose Triage receives the issues
})
Maple would then open one issue per incident in that team, comment on it at renotify and resolve, link it back to the incident, and show itself as the issue's creator.
Linear's own Sentry integration is the precedent (https://linear.app/docs/sentry). Sentry alert rules can create Linear issues, a Sentry issue can link to a Linear issue, and completing the Linear issue resolves the Sentry one. Maple's error issues could work the same way: create or link a Linear issue from an error issue, and move the error issue to resolved when its Linear issue completes.
One related gap: the webhook reference describes linkUrl as "the incident in the Maple dashboard", but composeLinkUrl in packages/backend/src/services/alerts/AlertDestinationDelivery.ts builds /services/<name>, the same URL for every incident of a service. That's why the Worker above keys on incidentId, and its issue can only link to the service page.
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 120
- 平均マージ
- 8時間 34分
- マージ済み PR(30日)
- 687
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MapleTechLabs/maple のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MapleTechLabs/maple#1921 · コメント 1 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
MapleTechLabs/maple#1888 ·
メンテナーはふだん 1 日以内に返信
-
docs: make Maple Cloud deployment checks discoverable to agents対応中かも @jasonkuhrt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
MapleTechLabs/maple#2007 ·
メンテナーはふだん 1 日以内に返信
-
Already-installed GitHub app leaves Sources waiting for a callback対応中かも @jasonkuhrt が今日担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
MapleTechLabs/maple#1998 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
MapleTechLabs/maple#1874 ·
メンテナーはふだん 1 日以内に返信
MapleTechLabs/maple の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
メンテナーはふだん 2 日以内に返信
-
BeOS .json missingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mihaip/infinite-mac#475 ·
-
Let TypeScript accept an initial object in ReactiveDict対応中かも @yograj-vijay-yadav が今日担当しました。 オープンbug good first issue help wanted workshop
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
meteor/meteor#14919 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
marmelab/atomic-crm#401 ·
メンテナーはふだん 1 日以内に返信
-
account: profile
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 5 日以内に返信