Add the ability to checkout the latest release using `gh release checkout`
- Dominant language
- Go
- Stars
- 46.3k
- Forks
- 9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 89
Description
### Describe the feature or problem you’d like to solve
We're using github codespaces to host and run utilities, often used by non-technical team members. If a user has a codespace created, we want to make sure they're using the latest release, instead of the `main` branch.
The `gh release view` command already shows the user to view the latest release if ran with no more arguments
### Proposed solution
A new command to checkout the tag/commit associated with a specific release. Similar to `gh pr checkout`, this command would behave the same as `gh release view`, and check out a provided tag, or the latest tag if none is provided. It would also include the same flags as the other checkout commands like `--force` `--recurse-submodules` etc
### Examples
```bash
gh release checkout
```
```bash
gh release checkout v1.0.2
```
Contributor guide
Assessment
This issue has not been assessed yet.