Currently, when you save a Colab notebook to GitHub the repo dropdown is freshly populated every time. As a result, it always displays the first repo in the entire list as the default option. This means that users must manually open the dropdown and find the correct repo (and/or branch) to save the notebook to.
This causes two issues:
It's easy for someone to save a copy of a notebook to the wrong repo if they forget to select one manually.
It is mildly inconvenient to have to spend time finding the right repo every time you want to save a copy to GitHub. This is especially true if the user has a lot of repos or branches, as it can take a few seconds to find the right one in that case.
It would be a nice QoL improvement to have Colab remember the last repo that was selected. A naive implementation could be as simple as a cookie that's checked against the list of repos to set a default selection for the dropdown.
This way, storing a copy on GitHub (which can happen quite frequently if you're treating it just like a commit in a regular workflow) would be as quick and simple as File -> Save a copy to GitHub -> OK, without the extra hassle of clicking through two dropdowns for repo and branch every time.
Edit: Editing to note that since I posted this I've accidentally pushed to a personal repo instead of an org's repo more than once, oops...
Currently, when you save a Colab notebook to GitHub the repo dropdown is freshly populated every time. As a result, it always displays the first repo in the entire list as the default option. This means that users must manually open the dropdown and find the correct repo (and/or branch) to save the notebook to.
This causes two issues:
It's easy for someone to save a copy of a notebook to the wrong repo if they forget to select one manually.
It is mildly inconvenient to have to spend time finding the right repo every time you want to save a copy to GitHub. This is especially true if the user has a lot of repos or branches, as it can take a few seconds to find the right one in that case.
It would be a nice QoL improvement to have Colab remember the last repo that was selected. A naive implementation could be as simple as a cookie that's checked against the list of repos to set a default selection for the dropdown.
This way, storing a copy on GitHub (which can happen quite frequently if you're treating it just like a commit in a regular workflow) would be as quick and simple as
File
->Save a copy to GitHub
->OK
, without the extra hassle of clicking through two dropdowns for repo and branch every time.Edit: Editing to note that since I posted this I've accidentally pushed to a personal repo instead of an org's repo more than once, oops...