Skip to content

Commit

Permalink
feat(#85): use UNKNOWN_REVISION when are unable to determine git re…
Browse files Browse the repository at this point in the history
…vision when building bot
  • Loading branch information
sourabhxyz committed Oct 30, 2024
1 parent 8e9ca05 commit b6ab4d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion geniusyield-server-lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Revision history for geniusyield-server-lib

## 0.11.1 -- 2024-10-28
## 0.11.1 -- 2024-10-30

* Adds support of [`prices`](https://openapi.taptools.io/#tag/Market-Tokens/paths/~1token~1prices/post) TapTools endpoint.
* In case project is being built from an environment which lacks access to corresponding `.git` directory, "UNKNOWN_REVISION" is used for `revision` field when querying for settings of the server.

## 0.11.0 -- 2024-08-30

Expand Down
2 changes: 1 addition & 1 deletion geniusyield-server-lib/src/GeniusYield/Server/Constants.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import RIO

-- | The git hash of the current commit.
gitHash String
gitHash = $$tGitInfoCwd & giHash
gitHash = either (const "UNKNOWN_REVISION") giHash $$tGitInfoCwdTry

0 comments on commit b6ab4d8

Please sign in to comment.