feat: use specific branch with SSH url
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず ENVBUILDER_GIT_URL を解析するコードを見つけ、issue にある HTTPS および SSH の URL 例の処理を比較します。/#refs/heads/sample-branch を付けた SSH URL の clone でそのブランチが選択されること、またブランチなしの clone も引き続き動作することを確認してください。payload にはファイルパスもテストパスも指定されていません。
索引モデルが issue の本文から書いたものです。
説明
It seems that there was an oversight when implementing the branch name parsing in ENVBUILDER_GIT_URL resulting in an inability to use a specific branch when cloning using an SSH URL.
Could we look into implementing this?
When I work with a public repository and use HTTPS, everything works fine. I can clone the main branch and even specify another branch, as described in the documentation, like this:
ENVBUILDER_GIT_URL=https://github.com/coder/envbuilder-starter-devcontainer/#refs/heads/my-feature-branch
However, when I switch to a private repository that requires SSH authentication, I can successfully clone the main branch, but I'm unable to specify a different branch (e.g., sample-branch). Here's the Git URL format I'm using for the private repo:[email protected]:your-group/your-repo.git/#refs/heads/sample-branch
(https://discord.com/channels/747933592273027093/1354136229498585158/1354136229498585158)
- 主要言語
- Go
- スター
- 300
- フォーク
- 64
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/envbuilder のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
coder/envbuilder#506 ·
-
bug envbuilder needs-investigation
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
coder/envbuilder#495 ·
-
envbuilder Feature
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
coder/envbuilder#492 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
coder/envbuilder#484 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
coder/envbuilder#483 ·
coder/envbuilder の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1417 ·
メンテナーはふだん 2 日以内に返信
-
agent-research-finding agent-research-recommend chore ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
jordansmall/spindrift#4068 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Type/Task
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
OpenNSW/nsw-srilanka#537 ·
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜2日 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信