Starting a new branch

オープン
#44 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
73/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
compilers, tooling

調査の方向性

Start by reading the existing StartBranch(string token, IState<T> state) overload and the StringTransition API it should accept. Then add the overload that takes a transition, mirroring how existing branch-starting code threads state through. Add tests covering a transition with a pattern such as test|Test|TEST, and update the documentation that mentions StartBranch. Done means the new overload is usable as shown, with tests and docs updated.

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

説明

good first issue usability

What we can do now

To start a branch, we use the method StartBranch(string token, IState<T> state)

The problem

If we want to start a branch from different tokens, we need to use this method again and again for similar tokens

For example

parser.StartBranch("test", state);
parser.StartBranch("Test", state);
parser.StartBranch("TEST", state);

The solution

Surcharche the method to also accept a transition. Since StringTransition can handle a regular expression, the above example can become

parser.StartBranch(new StringTransition(state).AddPattern("test|Test|TEST"))

Like always, don't forget to add tests and documentation

主要言語
C#
スター
0
フォーク
0
平均マージ
3日 4時間
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Natvs/Nt.SyntaxParser のほかの issue

Natvs/Nt.SyntaxParser の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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