@cmflow/cli 2.2.2 → 2.2.3

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.
Binary file
package/README.md CHANGED
@@ -173,7 +173,7 @@ export default defineConfig({
173
173
  run: [
174
174
  [
175
175
  '@cmflow/cli/semantic/core/sync-repository',
176
- { branches: ['main', 'develop', 'release'] }
176
+ { includes: ['main', 'develop', 'release'] }
177
177
  ],
178
178
  '@semantic-release/github'
179
179
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmflow/cli",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "An awesome Git Flow",
5
5
  "author": "camfou",
6
6
  "license": "MIT",
@@ -20,11 +20,9 @@ export default async function syncRepository(pluginConfig, context) {
20
20
 
21
21
  await asyncCatchError(() => git.fetch());
22
22
 
23
- console.log(pluginConfig.branches);
24
23
  const candidateBranches =
25
- // pluginConfig.branches ||
24
+ pluginConfig.includes ||
26
25
  context.options.branches?.map((branch) => {
27
- console.log(branch);
28
26
  return branch.name || branch;
29
27
  });
30
28
 
@@ -38,6 +36,8 @@ export default async function syncRepository(pluginConfig, context) {
38
36
 
39
37
  return git.push("--quiet", "--set-upstream", ORIGIN, context.branch.name);
40
38
  });
39
+ } else {
40
+ logger.info(`Skip push for ${context.branch.name}`);
41
41
  }
42
42
 
43
43
  if (PRODUCTION_BRANCH !== DEVELOP_BRANCH) {