microsoft / microsoft/vscode-pull-request-github
Support using `pushRemote` and `merge` to detect the PR of a branch
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.6k
- フォーク
- 795
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 46
説明
My branches are set up like this (a triangle workflow, but with just one remote):
[branch "feature1"]
pushRemote = origin
remote = origin
merge = refs/heads/master
[branch "feature2-using-feature1"]
pushRemote = origin
remote = origin
merge = refs/heads/feature1
Currently it seems like this plugin is matching the "merge" setting of the branches against the "from" setting of the PR to decide which branch should be checked-out for a PR. However this results in feature2-using-feature1 being associated with feature1's PR.
I couldn't find a setting to make this work. I'm working around it by going into .git/config and manually updating the vscode-merge-base and github-pr-owner-number settings for each branch, but it would be great if there's some way to configure this plugin so that PRs can be associated with branches based on the pushRemote setting and matching names of the local branches with those on the pushRemote (https://git-scm.com/docs/git-config#Documentation/git-config.txt-branchnamepushRemote)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ファイルやテストは指定されていません。まず branch と PR の関連付けロジックを見つけ、branch の merge 設定が PR の from branch にどのように対応付けられているかを追跡します。その動作を Git の pushRemote およびローカル branch 名と比較します。triangle workflow が、手動で .git/config を編集しなくても各 PR を意図したローカル branch に関連付けられれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, github, typescript, vscode
- 領域
- developer-experience, devtools, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100