coder / coder/envbuilder

feat: Add a way to select a specific branch before building the devcontainer

オープン
#266 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
300
フォーク
64
平均マージ
20分
マージ済み PR(30日)
1

説明

### Description

Improve feature parity with `github codespaces`.

The goal is to add a new `coder_parameter` called `target branch` to workspace templates.
It will let the user select a branch from which to build a devcontainer.

Unlike the devcontainer cli, the `git clone` happen in the `enbuilder` container.
So I think it is the responsibility of `envbuilder` to checkout to the target branch **before building the container**.

---

PS: The [workaround in readme.md](https://github.com/coder/envbuilder?tab=readme-ov-file#git-branch-selection) does not work on all platforms.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Read the readme.md Git branch selection workaround first, then trace the coder_parameter handling and the envbuilder checkout flow. Done means a target branch can be selected in workspace templates and is checked out before the devcontainer is built, including platforms where the README workaround fails.

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

評価

技術スタック
docker, go
領域
build-system
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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