Skip to content

Commit

Permalink
Release v0.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lau <[email protected]>
  • Loading branch information
aurexav committed Sep 12, 2024
1 parent a91085e commit 50ef850
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 55 deletions.
79 changes: 30 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "GPL-3.0"
name = "auto-merge"
readme = "README.md"
repository = "https://github.com/hack-ink/auto-merge"
version = "0.1.0"
version = "0.1.1"

[profile.ci-dev]
incremental = false
Expand All @@ -27,6 +27,6 @@ vergen-gitcl = { version = "1.0", features = ["cargo"] }
anyhow = { version = "1.0" }
clap = { version = "4.5", features = ["derive"] }
color-eyre = { version = "0.6" }
reqwew = { version = "0.2" }
reqwew = { version = "0.3" }
serde_json = { version = "1.0" }
tokio = { version = "1.4", features = ["macros", "rt-multi-thread"] }
8 changes: 4 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use reqwew::{
header::{HeaderMap, AUTHORIZATION, USER_AGENT},
ClientBuilder,
},
Client, Http, Response,
Client as RClient, Http, Response,
};
use serde_json::Value;

Expand All @@ -41,7 +41,7 @@ impl Cli {
pub async fn run(&self) -> Result<()> {
let Cli { repository } = self;
let gh_tk = env::var("GITHUB_TOKEN")?;
let c = C::new(&gh_tk)?;
let c = Client::new(&gh_tk)?;

for (number, sha, title) in c.list_pull_requests(repository).await? {
println!("checking: {title}");
Expand All @@ -66,8 +66,8 @@ fn styles() -> Styles {
}

#[derive(Debug)]
struct C(Client);
impl C {
struct Client(RClient);
impl Client {
fn new(github_token: &str) -> Result<Self> {
let c = ClientBuilder::new()
.default_headers(HeaderMap::from_iter([
Expand Down

0 comments on commit 50ef850

Please sign in to comment.