Skip to content

Commit 16f974c

Browse files
committed
Fix GenChangelogs
1 parent a9cd9b2 commit 16f974c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
([#1077](https://github.com/haskell/vscode-haskell/pull/1077)) by @fendor
99
- Tooling update
1010
([#1043](https://github.com/haskell/vscode-haskell/pull/1043)) by @bzm3r
11+
- Add `haskell.plugin.fourmolu.config.path` option
12+
([#987](https://github.com/haskell/vscode-haskell/pull/987)) by @georgefst
1113

1214
## 2.5.2
1315

GenChangelogs.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import System.Process
1919

2020
main = do
2121
callCommand "git fetch --tags"
22-
tags <- filter (isPrefixOf "1.") . lines <$>
22+
tag <- last . lines <$>
2323
readProcess "git" ["tag", "--list", "--sort=v:refname"] ""
2424

25-
lastDateStr <- last . lines <$> readProcess "git" ["show", "-s", "--format=%cI", "-1", last tags] ""
25+
lastDateStr <- last . lines <$> readProcess "git" ["show", "-s", "--format=%cI", "-1", tag] ""
2626
lastDate <- zonedTimeToUTC <$> iso8601ParseM lastDateStr
2727

2828
args <- getArgs

0 commit comments

Comments
 (0)