deploy-vir 3.0.0 → 3.0.1

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
@@ -96,6 +96,7 @@ export type DeployVirBranchConfig = {
96
96
  toBranch: string;
97
97
  enableNotifications?: boolean | undefined;
98
98
  }[];
99
+ enableNotifications?: boolean | undefined;
99
100
  };
100
101
  /**
101
102
  * Define a type safe deploy-vir config.
package/dist/git.js CHANGED
@@ -100,7 +100,10 @@ export async function pushDeploy(git, branchConfig, repoConfig, remoteName, noti
100
100
  after: afterCommit,
101
101
  },
102
102
  };
103
- if (notifications?.length && (repoConfig.enableNotifications || enableNotifications)) {
103
+ if (notifications?.length &&
104
+ (repoConfig.enableNotifications ||
105
+ enableNotifications ||
106
+ branchConfig.enableNotifications)) {
104
107
  await sendNotifications(notifications, {
105
108
  branchConfig,
106
109
  deployResult,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-vir",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Deploy a branch to another branch with notifications.",
5
5
  "keywords": [
6
6
  "deploy",
package/src/config.ts CHANGED
@@ -102,6 +102,7 @@ export type DeployVirBranchConfig = {
102
102
  toBranch: string;
103
103
  enableNotifications?: boolean | undefined;
104
104
  }[];
105
+ enableNotifications?: boolean | undefined;
105
106
  };
106
107
 
107
108
  /**
package/src/git.ts CHANGED
@@ -208,7 +208,12 @@ export async function pushDeploy(
208
208
  },
209
209
  };
210
210
 
211
- if (notifications?.length && (repoConfig.enableNotifications || enableNotifications)) {
211
+ if (
212
+ notifications?.length &&
213
+ (repoConfig.enableNotifications ||
214
+ enableNotifications ||
215
+ branchConfig.enableNotifications)
216
+ ) {
212
217
  await sendNotifications(notifications, {
213
218
  branchConfig,
214
219
  deployResult,