We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43fffda commit 5f71d64Copy full SHA for 5f71d64
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@codrjs/config",
3
- "version": "1.0.5",
+ "version": "1.0.6",
4
"description": "Codr configuration, unified",
5
"main": "./cjs/index.js",
6
"module": "./esm/index.js",
src/config/GitConfig.ts
@@ -1,9 +1,18 @@
export const GitConfig: {
- branch: string;
- commit: string;
+ ref: string;
+ commit: { sha: string; timestamp?: string };
repo: string;
+ workflow: {
+ sha: string;
7
+ }
8
} = {
- branch: process.env.GIT_BRANCH as string,
- commit: process.env.GIT_COMMIT as string,
9
+ ref: process.env.GIT_REF as string,
10
+ commit: {
11
+ sha: process.env.GIT_COMMIT_SHA as string,
12
+ timestamp: process.env.GIT_COMMIT_TIME,
13
+ },
14
repo: process.env.GIT_REPO as string,
15
16
+ sha: process.env.GIT_WORKFLOW_SHA as string,
17
18
};
0 commit comments