[gh classroom clone --mirror] Clone repositories using mirror behavior to have all branches locally
まだ誰も着手していません。
評価
調査の方向性
既存の gh classroom clone コマンドから始め、その clone フラグの処理を、文書化されている gh repo clone ... -- --depth=1 の動作と比較してください。要求されている --mirror オプションが学生のリポジトリに対して git clone --mirror と同等の結果を生成し、すべてのブランチをローカルに保持することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
When cloning student-repos repositories for archives purpose it is necessary to get all the branches locally so that the content on Github can be removed safely.
Similarly if the assignment tolerate or require to provide multiple branches then it would benefit of having all branches locally when cloning repositories instead of pulling them afterwards from remote repository.
Describe the solution you'd like
When using the existing gh classroom clone command the possibility to add --mirror option which would reflect the usage of git clone --mirror https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--mirrorcode
Describe alternatives you've considered
Scripting outside of gh cli using git directly to clone the repositories.
Additional context
Given that the underlying gh cli support adding git flags on the command line for clone operation it could be resolved by exposing this feature in gh-classroom cli. This solution would also resolves https://github.com/github/gh-classroom/issues/15
https://cli.github.com/manual/gh_repo_clone
# Clone a repository with additional git clone flags
$ gh repo clone cli/cli -- --depth=1
- 主要言語
- Go
- スター
- 126
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-classroom のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
github/gh-classroom#95 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/gh-classroom#21 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
github/gh-classroom#116 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
github/gh-classroom#110 ·
-
Sanitize Team name オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
github/gh-classroom#109 ·
github/gh-classroom の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
googleapis/librarian#7670 · コメント 2 件 ·