Feature request: endpoints for retrieving note comments and reactions
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- api
調査の方向性
ファイルやテストは指定されていません。まず既存の @hackmd/api クライアントメソッドと関連する issue #428 および #207 を確認してください。提案されているコメントおよびリアクションのエンドポイント、クライアントメソッド、レスポンスタイプが定義され、サポートされた時点で作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The @hackmd/api client currently has no methods for retrieving comment or reaction data from notes. The only comment-related field exposed is commentPermission (controlling who can comment), but the actual comment content, threads, and reactions are completely inaccessible via the API.
Request
Add API endpoints and corresponding client methods for retrieving comments and reactions:
Proposed endpoints
GET /v1/notes/:noteId/comments
GET /v1/notes/:noteId/reactions
Proposed client methods
// Get all comments on a note (including replies and reactions per comment)
async getComments(noteId: string): Promise<Comment[]>
// Get all reactions on a note
async getReactions(noteId: string): Promise<Reaction[]>
Suggested response types
interface Comment {
id: string
author: {
id: string
name: string
}
body: string
createdAt: string // ISO 8601
updatedAt: string // ISO 8601
resolved: boolean
range?: {
startLine: number
endLine: number
}
replies: Reply[]
reactions: ReactionGroup[]
}
interface Reply {
id: string
author: {
id: string
name: string
}
body: string
createdAt: string
}
interface ReactionGroup {
emoji: string
users: string[] // user IDs
}
interface Reaction {
noteId: string
emoji: string
user: {
id: string
name: string
}
createdAt: string
}
Motivation
HackMD's commenting and reaction features are valuable for collaboration, but teams that use the API or CLI to sync notes to external systems (e.g., GitHub repositories) lose all of this context. Exposing comment and reaction data via the API would enable:
- Backing up discussion context alongside note content
- Building integrations that preserve collaboration history
- Automating workflows that depend on comment/reaction data
Related
- Broader feature request: https://github.com/hackmdio/hackmd-io-issues/issues/428
- Original request from 2020: https://github.com/hackmdio/hackmd-io-issues/issues/207
- 主要言語
- TypeScript
- スター
- 20
- フォーク
- 8
- 平均マージ
- 47分
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackmdio/api-client のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
hackmdio/api-client#73 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
hackmdio/api-client#51 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
hackmdio/api-client#13 · コメント 1 件 · リアクション 1 件 ·
-
Parse noteId methodオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
hackmdio/api-client#6 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
hackmdio/api-client#2 · コメント 2 件 · リアクション 1 件 ·
hackmdio/api-client の issue をすべて見る
似ている issue
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFD対応中かも @goranai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vercel-labs/ui#1494 ·
メンテナーはふだん 1 日以内に返信
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing対応中かも @chaitanya0305 が今日担当しました。 オープンbug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
BaaRai/ARTEX#652 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信