Skip to content

Commit a791a24

Browse files
committed
v0.3.0 — Correctness and streamlined dependencies
- Adjust `Display` format of `LocalRepoError::CommandFailed` to use the std `ExitStatus` Display - Do not suppress stderr from executed Git commands (except for the command run by `LocalRepo::is_git_repo()`) - CLI: Do not emit a redundant error message when `git remote get-url` fails - Drop serde, serde-json, fancy-regex, and lazy-static dependencies - Remove the `GH_OWNER_RGX` and `GH_NAME_RGX` constants - Properly follow RFC 3986 when parsing username & password fields in `www.github.com` URLs - Correct the accepted format for URLs that start with `ssh://` (They need to separate the hostname from the path with a slash rather than a colon) - Schemes & hostnames in URLs are now parsed case-insensitively - Switch from clap to lexopt - `LocalRepo::for_cwd()` now returns a new dedicated variant of `LocalRepoError` if the call to `std::env::current_dir()` fails
1 parent dbc468f commit a791a24

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
v0.3.0 (in development)
2-
-----------------------
1+
v0.3.0 (2022-11-15)
2+
-------------------
33
- Adjust `Display` format of `LocalRepoError::CommandFailed` to use the std
44
`ExitStatus` Display
55
- Do not suppress stderr from executed Git commands (except for the command run

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ghrepo"
3-
version = "0.3.0-dev"
3+
version = "0.3.0"
44
edition = "2021"
55
rust-version = "1.60"
66
description = "Parse & construct GitHub repository URLs & specifiers"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ in your Cargo project, add the following to your `Cargo.toml`:
2020

2121
```toml
2222
[dependencies]
23-
ghrepo = "0.2.1"
23+
ghrepo = "0.3.0"
2424
```
2525

2626
To install the `ghrepo` command on your system, use `cargo install`:

0 commit comments

Comments
 (0)