[New Command Request] Add an option to pull from origin only, ignoring upstream
まだ誰も着手していません。
評価
調査の方向性
まず、gh classroom pull student-repos の実装と引数解析を追跡し、現在の pull の動作が origin と upstream をどのように考慮しているかを確認します。新しい -o 形式を定義し、upstream との同期を必要とせずに git pull origin main と同等の処理を実行することを検証します。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
see #77
This is to avoid the error message:
failed to run gh: can't sync because there are diverging changes; use `--force` to overwrite the destination branch. error: exit status 1
when student repos aren't in sync with upstream (and may not need to be).
Describe the solution you'd like
As well as the current gh classroom pull student-repos command, a version including the -o flag so the execution is equivalent to git pull origin main instead of the default behaviour (which considers the entire fork chain, i.e. both origin and upstream).
Either:
gh classroom pull -o student-repos
or
gh classroom pull student-repos -o
Describe alternatives you've considered
I've both reverted to my pre-gh classroom scripts and to iterating with a simple shell script through the clones in the x-submissions directory to run git pull origin main.
Additional context
Add any other context or screenshots about the feature request here.
- 主要言語
- 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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
acceptance-tests phase-coding schema-coverage testing triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100