Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Inbox: 6 and 8-digit issue refs render as colour swatches instead of links

オープン 初心者向け
#1,932 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

バグは packages/ui/components/InlineMarkdown.tsx の InlineMarkdown にあります。16進数カラーのスウォッチを処理する分岐が、Issue参照を処理する #(\d+) の分岐より先に実行されています。まず2つの分岐とその順序を読み、次に #186379 と #123 をレンダリングして現在の出力を確認してください。すべて数字の6桁と8桁の参照がリンクになり、#a1b2c3 のような実際の16進数スウォッチと、既存の #123 参照の動作が引き続き機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Since #1840, issue refs in Inbox messages link to the project's repo. Refs with 6 or 8 digits don't, though: #186379 shows a colour swatch and a code pill, because it's also a valid hex colour. That's every current PR in big repos like home-assistant/core.

In InlineMarkdown, the hex swatch branch runs before the issue-ref branch. 3 and 4-digit hex needs an a-f letter so #123 stays a ref, but the 6 and 8-digit forms have no such check, so all-digit values never reach the ref branch.

Suggested fix: use the same letter rule for the 6 and 8-digit forms, or let an all-digit #n be an issue ref whenever a repo is known.

Seen on plannotator 0.28.20, Linux, OpenCode.

Image
主要言語
TypeScript
スター
8.7k
フォーク
649
平均マージ
4時間 11分
マージ済み PR(30日)
335

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

backnotprop/plannotator のほかの issue

backnotprop/plannotator の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。