Skip to content

Commit

Permalink
fix: Better link for tag-headline
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMitterer committed Feb 20, 2015
1 parent 7cd7558 commit caf6fb8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ Update
###Usage###

```shell
# your commit with a "keyword"
git commit -am "feature: This is my new feature"
git tag -am 0.0.1

# Write CHANGELOG.md and set the version in pubspec.yaml
git-help -cy

# push everything to your repo
git push -u origin --all
git push -u origin --tags
```
-c - Writes CHANGELOG.md
-c - Writes CHANGELOG.md<br>
-y - Sets the version in your pubspec.yaml

"feature" is a commit keyword. All the other keywords are [here][keywords]
Expand Down
6 changes: 5 additions & 1 deletion lib/src/Application.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,11 @@ class Application {
final String repository = repo.repository;
final String domain = repo.domain;

headline = "[$tag](http://$domain/$ghaccount/$repository/compare/$range)";
if(tag == "Unreleased") {
headline = "[$tag](http://$domain/$ghaccount/$repository/compare/$range)";
} else {
headline = "[$tag](http://$domain/$ghaccount/$repository/commits/$range)";
}

} else {
headline = "$tag";
Expand Down

0 comments on commit caf6fb8

Please sign in to comment.