-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.edn
41 lines (32 loc) · 1.69 KB
/
config.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{:variables
{:git/url #git "config --get remote.origin.url"
:git/branch #git "rev-parse --abbrev-ref HEAD"
:git/sha #git "rev-parse --short HEAD"
:git/commit-subject #git "log -1 --no-merges --pretty=format:%s"
:git/commit-body #git "log -1 --no-merges --pretty=format:%b"
:git/commit-message #git "log -1 --no-merges --pretty=format:%B"
:git/committer-timestamp #git "log -1 --no-merges --pretty=format:%cI"
:git/committer-name #git "log -1 --no-merges --pretty=format:%cn"
:git/committer-email #git "log -1 --no-merges --pretty=format:%ce"
:git/author-timestamp #git "log -1 --no-merges --pretty=format:%aI"
:git/author-name #git "log -1 --no-merges --pretty=format:%an"
:git/author-email #git "log -1 --no-merges --pretty=format:%ae"
:git/commits-count #or [#git "rev-list HEAD --count" "0"]
:git/tags #git "tag --list --sort=-version:refname \"*\""
:build/number #or [#env BUILD_NUMBER "N/A"]
:build/created-at #zoned-date-time "iso-offset-datetime"
:datetime/year #zoned-date-time "YYYY"
:datetime/month #zoned-date-time "MM"
:datetime/day #zoned-date-time "dd"
:datetime/hour #zoned-date-time "HH"
:datetime/minute #zoned-date-time "mm"
:datetime/second #zoned-date-time "SS"
:version/pre-release #case [#ref [:variables :git/branch]
{#{"master" "main"} ""
:default "-SNAPSHOT"}]}
:build
{:src-dirs ["src"]
:resource-dirs ["resources"]
:target "target"}
:export
{:format :edn}}