Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carpe-diem committed Dec 27, 2024
1 parent 88c50bf commit 72d157a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,18 @@ cargo run -- setup # Run setup command
cargo run -- sync # Run sync command
```

Tests are located within each module file. For example, configuration tests can be found in `src/config.rs` under the `tests` module.
Tests are located within each module file. For example, configuration tests can be found in `src/config.rs` under the `tests` module.

## Configuración

1. Crea un token de acceso personal de GitHub:
- Ve a https://github.com/settings/tokens
- Haz clic en "Generate new token" (Generate new token classic)
- Dale un nombre descriptivo a tu token
- Selecciona los permisos necesarios (mínimo: `repo` y `read:user`)
- Haz clic en "Generate token" y guarda el token en un lugar seguro

2. Configura las variables de entorno:
```bash
export GITHUB_TOKEN=tu_token_aquí
```
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Config {

let config = Config {
github_token: prompt_with_default(
"Enter your GitHub token",
"Enter your GitHub token (https://github.com/settings/tokens)",
&existing_config.github_token,
)?,
github_repo: prompt_with_default(
Expand Down

0 comments on commit 72d157a

Please sign in to comment.