You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
feat: git remote url in the template engine
This commit is contained in:
committed by
Carlos Alexandro Becker
parent
01189ba02b
commit
748d97ef22
@@ -27,6 +27,7 @@ const (
|
||||
commit = "Commit"
|
||||
shortCommit = "ShortCommit"
|
||||
fullCommit = "FullCommit"
|
||||
gitURL = "GitURL"
|
||||
major = "Major"
|
||||
minor = "Minor"
|
||||
patch = "Patch"
|
||||
@@ -52,6 +53,7 @@ func New(ctx *context.Context) *Template {
|
||||
commit: ctx.Git.Commit,
|
||||
shortCommit: ctx.Git.ShortCommit,
|
||||
fullCommit: ctx.Git.FullCommit,
|
||||
gitURL: ctx.Git.URL,
|
||||
env: ctx.Env,
|
||||
date: time.Now().UTC().Format(time.RFC3339),
|
||||
timestamp: time.Now().UTC().Unix(),
|
||||
|
||||
Reference in New Issue
Block a user