Skip to content

Commit

Permalink
Fix circleci badge link
Browse files Browse the repository at this point in the history
Previously, cargo-readme would link to a URL that had cargo-readme on
its path. That wasn't right.
  • Loading branch information
antifuchs authored and webern committed Nov 6, 2023
1 parent 665cf82 commit 3ca46c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-readme"
version = "3.3.0"
version = "3.2.0"
edition = "2021"
authors = ["Livio Ribeiro <livioribeiro@outlook.com>"]
description = "A cargo subcommand to generate README.md content from doc comments"
Expand Down
2 changes: 1 addition & 1 deletion src/config/badges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn circle_ci(attrs: Attrs) -> String {

format!(
"[![Build Status](https://circleci.com/{service}/{repo}/tree/{branch}.svg?style=shield)]\
(https://circleci.com/{service}/{repo}/cargo-readme/tree/{branch})",
(https://circleci.com/{service}/{repo}/tree/{branch})",
repo = repo,
service = service,
branch = percent_encode(branch)
Expand Down
2 changes: 1 addition & 1 deletion tests/badges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use assert_cli::Assert;

const EXPECTED: &str = r#"
[![Build Status](https://ci.appveyor.com/api/projects/status/github/cargo-readme/test?branch=master&svg=true)](https://ci.appveyor.com/project/cargo-readme/test/branch/master)
[![Build Status](https://circleci.com/gh/cargo-readme/test/tree/master.svg?style=shield)](https://circleci.com/gh/cargo-readme/test/cargo-readme/tree/master)
[![Build Status](https://circleci.com/gh/cargo-readme/test/tree/master.svg?style=shield)](https://circleci.com/gh/cargo-readme/test/tree/master)
[![Build Status](https://gitlab.com/cargo-readme/test/badges/master/pipeline.svg)](https://gitlab.com/cargo-readme/test/commits/master)
[![Build Status](https://travis-ci.org/cargo-readme/test.svg?branch=master)](https://travis-ci.org/cargo-readme/test)
[![Coverage Status](https://codecov.io/gh/cargo-readme/test/branch/master/graph/badge.svg)](https://codecov.io/gh/cargo-readme/test)
Expand Down

0 comments on commit 3ca46c1

Please sign in to comment.