Skip to content

Commit

Permalink
fix: format commit id with code only when link is activated and fix r…
Browse files Browse the repository at this point in the history
…elease CI
  • Loading branch information
Joxit committed Jan 14, 2021
1 parent d063538 commit 3e7d513
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,4 @@ jobs:
push: true
tags: |
joxit/kokai:latest
joxit/kokai:${{steps.current-tag.outputs.tag}}
- name: Update repo description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: joxit/kokai
joxit/kokai:${{steps.current-tag.outputs.tag}}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kokai"
version = "0.3.0"
version = "0.3.1"
authors = ["Jones Magloire @Joxit"]
description = "Create changelog for your releases and full changelog for your projects using Conventional Commits."
edition = "2018"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Kokai allows you to create changelog for your releases and full changelog for yo
## All kokai commands

```
kokai 0.3.0
kokai 0.3.1
USAGE:
kokai <SUBCOMMAND>
Expand All @@ -32,7 +32,7 @@ SUBCOMMANDS:
### Release

```
kokai-release 0.3.0
kokai-release 0.3.1
Jones Magloire @Joxit
Create a release changelog for a specified tag
Expand Down Expand Up @@ -62,7 +62,7 @@ ARGS:
### Changelog

```
kokai-changelog 0.3.0
kokai-changelog 0.3.1
Jones Magloire @Joxit
Create a full changelog of your project
Expand Down
4 changes: 2 additions & 2 deletions src/parser/conventional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ impl Markdown for ConventionalCommit {
} else {
String::new()
};
let small_id = self.id.chars().take(8).collect::<String>().code();
let small_id = self.id.chars().take(8).collect::<String>();
let id = if let Some(commit_url) = &opts.commit_url(&self.id) {
small_id.link(commit_url)
small_id.code().link(commit_url)
} else {
small_id
};
Expand Down

0 comments on commit 3e7d513

Please sign in to comment.