starting work on new commit logic

This commit is contained in:
2020-08-31 22:45:27 -04:00
parent ebd6e095f7
commit cb24c6f2c8
5 changed files with 59 additions and 295 deletions

View File

@@ -1,6 +1,7 @@
package database
import (
"encoding/hex"
"fmt"
"github.com/asdine/storm/q"
@@ -200,6 +201,7 @@ func (db *DB) FetchLastCommitOnBranch(branch string) (commitResult Commit, err e
db.Err(err).Msgf("Failed to find last commit on branch: %s", branch)
return commit, err
}
db.Info().Msgf("Last commit was of number: %d Last Commit Hash was: %s Last commit occurred on date: %s", commit.Number, hex.EncodeToString(commit.CommitHash), commit.Date)
return commit, nil
}