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

Test that `{{name|x}}` and other near-variables stay plain text

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

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

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

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
92/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
testing

調査の方向性

tests/Prompuff.Application.Tests/PromptTemplateServiceTests.cs の理論 Tokens_that_are_not_variables_are_ignored を読み、各ケースが RenderSegments をどのように検証しているか確認してください。変数に似た、指定された例を追加し、それぞれがテンプレート全体を単一の Text セグメントとして返すことを確認してください。dotnet test tests/Prompuff.Application.Tests を実行してください。新しいケースが src/ 以下に変更を加えずにパスすれば完了です。

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

説明

good first issue

ROADMAP.md decided that variable defaults and choice lists, if they come, go in a metadata key and not inside the braces, and that a body holding {{name|x}} renders as plain text in 1.0 and must keep doing so. No test pins that yet, so a change to the variable pattern could start treating these as variables without anything failing.

What to do

Add cases to the Tokens_that_are_not_variables_are_ignored theory for at least:

  • {{name|x}} and {{ name | x }}
  • {{name:default}}
  • a line break inside the braces, such as "{{\nname\n}}"
  • a name with a non-ASCII letter, such as {{café}}

For each case, also check that RenderSegments returns the whole template as one Text segment. Don't change PromptTemplateService: these already render as written, so the tests pass as soon as they're added.

Where to look

  • src/Prompuff.Application/Services/PromptTemplateService.cs: the VariableToken pattern (line 14).
  • tests/Prompuff.Application.Tests/PromptTemplateServiceTests.cs: the theory at line 58.
  • ROADMAP.md: "Decisions: market research (2026-10-10)", the bullet on variables gaining options without new syntax.

Done when

  • The new cases are in the theory and pass.
  • Each case also checks RenderSegments.
  • Nothing under src/ changes.

Testing it

dotnet test tests/Prompuff.Application.Tests
主要言語
C#
スター
0
フォーク
1
平均マージ
1時間 21分
マージ済み PR(30日)
22

環境構築

はじめの一歩

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

hazeliscoding/prompuff のほかの issue

hazeliscoding/prompuff の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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