cli / cli/cli

Add the ability to checkout the latest release using `gh release checkout`

Abierto
#6,119 7 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement gh-release help wanted candidate needs-design
Lenguaje dominante
Go
Estrellas
46.3k
Forks
9k
Merge medio
2 d 6 h
PR fusionados (30 d)
97

Descripción

### 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
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza leyendo los comandos existentes `gh release view` y `gh pr checkout` para entender la selección de releases y el comportamiento del checkout. Define cómo gestiona el comando una etiqueta explícita, el release más reciente cuando no se proporciona ninguna etiqueta y flags de checkout como `--force` y `--recurse-submodules`; estará terminado cuando ambas invocaciones de ejemplo funcionen de forma coherente con los demás comandos de checkout.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
git, go
Área
cli
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.