deploy-vir 3.3.0 → 3.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.
package/dist/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type MaybePromise, type PartialWithUndefined } from '@augment-vir/common';
2
- import { type DeployResult } from './git.js';
2
+ import { type Commit, type DeployResult } from './git.js';
3
3
  /**
4
4
  * The full deploy-vir config object.
5
5
  *
@@ -35,6 +35,11 @@ export type PostAcceptHookParams = {
35
35
  toBranch: string;
36
36
  remoteName: string;
37
37
  deployResult: Readonly<DeployResult>;
38
+ /**
39
+ * All commits included in this deploy (the commits being pushed from `fromBranch` to
40
+ * `toBranch`).
41
+ */
42
+ newCommits: ReadonlyArray<Readonly<Commit>>;
38
43
  };
39
44
  /**
40
45
  * Optional values that a {@link DeployVirHooks.postAccept} hook can return to augment the resulting
package/dist/git.js CHANGED
@@ -104,6 +104,7 @@ export async function pushDeploy(git, branchConfig, repoConfig, remoteName, noti
104
104
  branchConfig,
105
105
  deployResult,
106
106
  fromBranch,
107
+ newCommits: commitsAhead,
107
108
  remoteName,
108
109
  repoConfig,
109
110
  toBranch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-vir",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Deploy a branch to another branch with notifications.",
5
5
  "keywords": [
6
6
  "deploy",
package/src/config.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import {type MaybePromise, type PartialWithUndefined} from '@augment-vir/common';
2
- import {type DeployResult} from './git.js';
2
+ import {type Commit, type DeployResult} from './git.js';
3
3
 
4
4
  /**
5
5
  * The full deploy-vir config object.
@@ -42,6 +42,11 @@ export type PostAcceptHookParams = {
42
42
  toBranch: string;
43
43
  remoteName: string;
44
44
  deployResult: Readonly<DeployResult>;
45
+ /**
46
+ * All commits included in this deploy (the commits being pushed from `fromBranch` to
47
+ * `toBranch`).
48
+ */
49
+ newCommits: ReadonlyArray<Readonly<Commit>>;
45
50
  };
46
51
 
47
52
  /**
package/src/git.ts CHANGED
@@ -216,6 +216,7 @@ export async function pushDeploy(
216
216
  branchConfig,
217
217
  deployResult,
218
218
  fromBranch,
219
+ newCommits: commitsAhead,
219
220
  remoteName,
220
221
  repoConfig,
221
222
  toBranch,