Git checks: follow `cd <dir> &&` in chained commands
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
Start with the hook code that splits a command on && and ; and runs Git checks using its cwd. Trace how a plain cd part is parsed, including relative paths and ~ expansion, and how an unresolvable target should fall back to the hook directory. Add regression tests for a blocked cd dir && git add -A and an allowed equivalent using only fake paths and values.
索引モデルが issue の本文から書いたものです。
説明
cd /path/proj && git add -A && git commit -m wip is probably the commonest way an agent stages files in another folder. The guard checks each && part on its own, but runs the Git checks against the hook's cwd, not the folder the cd moved to. A secrets file, or a settings file holding a secret, in /path/proj isn't caught.
Done when
- In a chain of
&&/;parts, a plaincd <dir>changes the folder used for the parts after it (relative to the current one, with~expanded). - If the folder can't be worked out (for example
cd "$VAR"), the guard falls back to the hook'scwdand keeps today's behaviour. - Regression tests cover a blocked
cd dir && git add -Aand an allowed one, with fake values only.
Found while reviewing #19.
Generated by Claude Code
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 2時間 28分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JTHCode/secretguard のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
JTHCode/secretguard#17 ·
メンテナーはふだん 1 日以内に返信
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JTHCode/secretguard#15 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JTHCode/secretguard#16 ·
メンテナーはふだん 1 日以内に返信
-
Add plugin manifest and hook configuration consistency tests対応中かも @nyx60002 が今日担当しました。 オープンenhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JTHCode/secretguard#4 ·
メンテナーはふだん 1 日以内に返信
JTHCode/secretguard の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·