@release-change/git 0.3.2 → 0.4.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.
@@ -1,6 +1,4 @@
1
1
  export declare const COMMIT_SEPARATOR: RegExp;
2
- export declare const COMMITTER_NAME = "github-actions[bot]";
3
- export declare const COMMITTER_EMAIL = "41898282+github-actions[bot]@users.noreply.github.com";
4
2
  export declare const HEAD_BRANCH_MAX_CHARACTERS = 244;
5
3
  export declare const HEAD_BRANCH_PREFIX = "release-change";
6
4
  export declare const GIT_TAG_PATTERN: RegExp;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,QAAoB,CAAC;AAClD,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,eAAe,0DAA0D,CAAC;AACvF,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,eAAe,QAAiB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,QAAoB,CAAC;AAClD,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,eAAe,QAAiB,CAAC"}
package/dist/constants.js CHANGED
@@ -1,6 +1,4 @@
1
1
  export const COMMIT_SEPARATOR = /\n{2}(?=commit)/;
2
- export const COMMITTER_NAME = "github-actions[bot]";
3
- export const COMMITTER_EMAIL = "41898282+github-actions[bot]@users.noreply.github.com";
4
2
  export const HEAD_BRANCH_MAX_CHARACTERS = 244;
5
3
  export const HEAD_BRANCH_PREFIX = "release-change";
6
4
  export const GIT_TAG_PATTERN = /^(@[^@]+@)?v/;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,eAAe,GAAG,uDAAuD,CAAC;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC"}
package/dist/index.d.ts CHANGED
@@ -18,7 +18,9 @@ export { push } from "./push.js";
18
18
  export { removeTag } from "./remove-tag.js";
19
19
  export { removeTagOnRemoteRepository } from "./remove-tag-on-remote-repository.js";
20
20
  export { setBranchName } from "./set-branch-name.js";
21
+ export { setCommitterEmail } from "./set-committer-email.js";
22
+ export { setCommitterName } from "./set-committer-name.js";
21
23
  export { switchToBranch } from "./switch-to-branch.js";
22
24
  export { switchToNewBranch } from "./switch-to-new-branch.js";
23
- export { COMMITTER_EMAIL, COMMITTER_NAME, GIT_TAG_PATTERN } from "./constants.js";
25
+ export { GIT_TAG_PATTERN } from "./constants.js";
24
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAA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AC"}
package/dist/index.js CHANGED
@@ -18,7 +18,9 @@ export { push } from "./push.js";
18
18
  export { removeTag } from "./remove-tag.js";
19
19
  export { removeTagOnRemoteRepository } from "./remove-tag-on-remote-repository.js";
20
20
  export { setBranchName } from "./set-branch-name.js";
21
+ export { setCommitterEmail } from "./set-committer-email.js";
22
+ export { setCommitterName } from "./set-committer-name.js";
21
23
  export { switchToBranch } from "./switch-to-branch.js";
22
24
  export { switchToNewBranch } from "./switch-to-new-branch.js";
23
- export { COMMITTER_EMAIL, COMMITTER_NAME, GIT_TAG_PATTERN } from "./constants.js";
25
+ export { GIT_TAG_PATTERN } from "./constants.js";
24
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA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E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sets the committer e-mail address based on whether a known app environment is enabled or not.
3
+ *
4
+ * @param isAppTool - Whether a known app environment is enabled or not.
5
+ * @returns The e-mail address of the app if an app environment is enabled, the e-mail address of the GitHub Actions bot otherwise.
6
+ */
7
+ export declare const setCommitterEmail: (isAppTool: boolean) => string;
8
+ //# sourceMappingURL=set-committer-email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-committer-email.d.ts","sourceRoot":"","sources":["../src/set-committer-email.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,cAAe,OAAO,KAAG,MAItD,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Sets the committer e-mail address based on whether a known app environment is enabled or not.
3
+ *
4
+ * @param isAppTool - Whether a known app environment is enabled or not.
5
+ * @returns The e-mail address of the app if an app environment is enabled, the e-mail address of the GitHub Actions bot otherwise.
6
+ */
7
+ export const setCommitterEmail = (isAppTool) => {
8
+ return isAppTool
9
+ ? "293970894+release-change[bot]@users.noreply.github.com"
10
+ : "41898282+github-actions[bot]@users.noreply.github.com";
11
+ };
12
+ //# sourceMappingURL=set-committer-email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-committer-email.js","sourceRoot":"","sources":["../src/set-committer-email.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAkB,EAAU,EAAE;IAC9D,OAAO,SAAS;QACd,CAAC,CAAC,wDAAwD;QAC1D,CAAC,CAAC,uDAAuD,CAAC;AAC9D,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sets the committer name based on whether a known app environment is enabled or not.
3
+ *
4
+ * @param isAppTool - Whether a known app environment is enabled or not.
5
+ * @returns The name of the app if an app environment is enabled, the name of the GitHub Actions bot otherwise.
6
+ */
7
+ export declare const setCommitterName: (isAppTool: boolean) => string;
8
+ //# sourceMappingURL=set-committer-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-committer-name.d.ts","sourceRoot":"","sources":["../src/set-committer-name.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,cAAe,OAAO,KAAG,MAErD,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Sets the committer name based on whether a known app environment is enabled or not.
3
+ *
4
+ * @param isAppTool - Whether a known app environment is enabled or not.
5
+ * @returns The name of the app if an app environment is enabled, the name of the GitHub Actions bot otherwise.
6
+ */
7
+ export const setCommitterName = (isAppTool) => {
8
+ return isAppTool ? "release-change[bot]" : "github-actions[bot]";
9
+ };
10
+ //# sourceMappingURL=set-committer-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-committer-name.js","sourceRoot":"","sources":["../src/set-committer-name.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,SAAkB,EAAU,EAAE;IAC7D,OAAO,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,CAAC;AACnE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@release-change/git",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Functions used internally in release-change to make Git operations easier",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/release-change/release-change",
@@ -27,10 +27,10 @@
27
27
  "pnpm": ">=11.1.3"
28
28
  },
29
29
  "dependencies": {
30
- "@release-change/commit-analyser": "0.2.2",
31
- "@release-change/logger": "0.2.0",
30
+ "@release-change/commit-analyser": "0.3.0",
31
+ "@release-change/logger": "0.3.0",
32
32
  "@release-change/semver": "0.1.0",
33
- "@release-change/shared": "0.2.0"
33
+ "@release-change/shared": "0.3.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsc",