@digipair/skill-git 0.138.2 → 0.140.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -5,8 +5,10 @@ var simpleGit = require('simple-git');
5
5
  let GitService = class GitService {
6
6
  async commit(params, _pinsSettingsList, context) {
7
7
  const now = new Date();
8
- const { path = context.privates.GIT_PATH || '.', selector = '*', message = `${now.getUTCFullYear()}-${(now.getUTCMonth() + 1).toString().padStart(2, '0')}-${now.getUTCDate().toString().padStart(2, '0')}-${now.getUTCHours().toString().padStart(2, '0')}:${now.getUTCMinutes().toString().padStart(2, '0')}:${now.getUTCSeconds().toString().padStart(2, '0')}:${now.getUTCMilliseconds().toString().padStart(3, '0')}` } = params;
9
- return await simpleGit.simpleGit(path).add(selector).commit(message);
8
+ const { path = context.privates.GIT_PATH || '.', selector = '*', message = `${now.getUTCFullYear()}-${(now.getUTCMonth() + 1).toString().padStart(2, '0')}-${now.getUTCDate().toString().padStart(2, '0')}-${now.getUTCHours().toString().padStart(2, '0')}:${now.getUTCMinutes().toString().padStart(2, '0')}:${now.getUTCSeconds().toString().padStart(2, '0')}:${now.getUTCMilliseconds().toString().padStart(3, '0')}`, author = 'Unknown <unknown@digipair.ai>' } = params;
9
+ return await simpleGit.simpleGit(path).add(selector).commit(message, undefined, {
10
+ '--author': author
11
+ });
10
12
  }
11
13
  async push(params, _pinsSettingsList, context) {
12
14
  const { path = context.privates.GIT_PATH || '.', options = [] } = params;
package/dist/index.esm.js CHANGED
@@ -6888,8 +6888,10 @@ var simpleGit = gitInstanceFactory;
6888
6888
  let GitService = class GitService {
6889
6889
  async commit(params, _pinsSettingsList, context) {
6890
6890
  const now = new Date();
6891
- const { path = context.privates.GIT_PATH || '.', selector = '*', message = `${now.getUTCFullYear()}-${(now.getUTCMonth() + 1).toString().padStart(2, '0')}-${now.getUTCDate().toString().padStart(2, '0')}-${now.getUTCHours().toString().padStart(2, '0')}:${now.getUTCMinutes().toString().padStart(2, '0')}:${now.getUTCSeconds().toString().padStart(2, '0')}:${now.getUTCMilliseconds().toString().padStart(3, '0')}` } = params;
6892
- return await simpleGit(path).add(selector).commit(message);
6891
+ const { path = context.privates.GIT_PATH || '.', selector = '*', message = `${now.getUTCFullYear()}-${(now.getUTCMonth() + 1).toString().padStart(2, '0')}-${now.getUTCDate().toString().padStart(2, '0')}-${now.getUTCHours().toString().padStart(2, '0')}:${now.getUTCMinutes().toString().padStart(2, '0')}:${now.getUTCSeconds().toString().padStart(2, '0')}:${now.getUTCMilliseconds().toString().padStart(3, '0')}`, author = 'Unknown <unknown@digipair.ai>' } = params;
6892
+ return await simpleGit(path).add(selector).commit(message, undefined, {
6893
+ '--author': author
6894
+ });
6893
6895
  }
6894
6896
  async push(params, _pinsSettingsList, context) {
6895
6897
  const { path = context.privates.GIT_PATH || '.', options = [] } = params;
@@ -41,6 +41,15 @@
41
41
  "schema": {
42
42
  "type": "string"
43
43
  }
44
+ },
45
+ {
46
+ "name": "author",
47
+ "summary": "Auteur",
48
+ "required": false,
49
+ "description": "Auteur du commit",
50
+ "schema": {
51
+ "type": "string"
52
+ }
44
53
  }
45
54
  ],
46
55
  "x-events": [],
package/dist/schema.json CHANGED
@@ -41,6 +41,15 @@
41
41
  "schema": {
42
42
  "type": "string"
43
43
  }
44
+ },
45
+ {
46
+ "name": "author",
47
+ "summary": "Author",
48
+ "required": false,
49
+ "description": "Author of the commit",
50
+ "schema": {
51
+ "type": "string"
52
+ }
44
53
  }
45
54
  ],
46
55
  "x-events": [],
@@ -1 +1 @@
1
- {"version":3,"file":"skill-git.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiEhD,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,+CACtB,CAAC;AAE7D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,6CACtB,CAAC;AAE3D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACtB,CAAC;AAE3D,eAAO,MAAM,GAAG,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iDACtB,CAAC"}
1
+ {"version":3,"file":"skill-git.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAkEhD,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,+CACtB,CAAC;AAE7D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,6CACtB,CAAC;AAE3D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACtB,CAAC;AAE3D,eAAO,MAAM,GAAG,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iDACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-git",
3
- "version": "0.138.2",
3
+ "version": "0.140.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",