* Add a share menu
Fixes#146309
* Add vscod.dev command in github extension
* Make share menu proposed
* Add share submenu into editor context
* Add proposed to editor share menu
* 🔨 Set ignoreFocusOut to true on PR template selection
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* 🔨 Translate PR template paths to relative in quick pick list
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* 💄 Shorten line length
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* ⚗️ Update tests with latest required args
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* ⚗️ Update GitHub extension unit tests
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
- This makes the body of the pull request non-empty when the commit message consists more than one line.
- The GitHub web client fills the body the same way, too, when you create a pull request.
- Some commit messages consist more than one line, like this one, which is giving more detail about the commit, and can be used as a shortcut to not write the same text when opening a pull request and on GitHub.
- Without these changes, the pull request title will be messed up if the commit message is similar to this.
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
* Allow custom title in remote source picker
* Include forks in query search results
* Support `RemoteSource.detail`
* Allow showing quickpicks in `getRemoteSources`
* Allow custom placeholder and remote source icons
* Add ability to customize placeholder
* Register and show recently opened sources
* Allow custom remote url labels
* Add a separator label for remote sources
* Update git-base typings
* Make showing recent sources opt in
* Add concept of recent remote source to `RemoteSourceProvider` concept
* Recent sources should be sorted by timestamp
* Pass current query to `getRemoteSources`
* Fix applying query
* Add getPullRequestTemplates method to discover templates
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Add method to quick pick for PR templates
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Handle possible PR templates
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Remove unnecessary return value assignment
Co-authored-by: João Moreno <mail@joaomoreno.com>
* Change comparison operands' order
Co-authored-by: João Moreno <mail@joaomoreno.com>
* Remove sorting template URIs in pickPullRequestTemplate
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Sort template URIs before showing quick-pick list
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Rename getPullRequestTemplates method to findPullRequestTemplates
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Find Github PR templates in-parallel using readdir/stat
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Export method for visibitliy in tests
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Add tests for Github PR template detection
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Add launcher configration to run Github tests
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* 💄
* Replace stat with readDirectory for OS native case sensitivity
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Delete some files to avoid duplicate names on case insensitive envs
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
* Exclude deleted files from test case expected result
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
Co-authored-by: João Moreno <mail@joaomoreno.com>
Co-authored-by: João Moreno <joao.moreno@microsoft.com>