You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ commitInfo(folder)
30
30
// email
31
31
// author
32
32
// sha
33
+
// timestamp (in seconds since epoch)
33
34
// remote
34
35
})
35
36
```
@@ -52,6 +53,7 @@ message: COMMIT_INFO_MESSAGE
52
53
email: COMMIT_INFO_EMAIL
53
54
author: COMMIT_INFO_AUTHOR
54
55
sha: COMMIT_INFO_SHA
56
+
timestamp: COMMIT_INFO_TIMESTAMP
55
57
remote: COMMIT_INFO_REMOTE
56
58
```
57
59
@@ -71,7 +73,7 @@ See [docker-example](docker-example) for a full example.
71
73
## Individual methods
72
74
73
75
In addition to `commitInfo` this module also exposes individual promise-returning
74
-
methods `getBranch`, `getMessage`, `getEmail`, `getAuthor`, `getSha`, `getRemoteOrigin`. These methods do NOT use fallback environment variables.
76
+
methods `getBranch`, `getMessage`, `getEmail`, `getAuthor`, `getSha`, `getTimestamp`, `getRemoteOrigin`. These methods do NOT use fallback environment variables.
0 commit comments