@scaleway/changesets-renovate 1.3.2 → 1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1705](https://github.com/scaleway/scaleway-lib/pull/1705) [`d3e1246`](https://github.com/scaleway/scaleway-lib/commit/d3e1246f70229cf9e3a7a5d464d921fe5e379af0) Thanks [@wrighbr](https://github.com/wrighbr)! - add the ability to skip commit
8
+
3
9
  ## 1.3.2
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -16,4 +16,10 @@ This package is a very simple CLI:
16
16
  changesets-renovate
17
17
  ```
18
18
 
19
+ To skip committing the changeset.
20
+
21
+ ```bash
22
+ SKIP_COMMIT=TRUE changesets-renovate
23
+ ```
24
+
19
25
  It's inspired by this GitHub Action from Backstage: https://github.com/backstage/backstage/blob/master/.github/workflows/sync_renovate-changesets.yml
package/dist/index.js CHANGED
@@ -82,9 +82,11 @@ async function run() {
82
82
  const fileName = `.changeset/renovate-${shortHash}.md`;
83
83
  const packageBumps = await getBumps(files);
84
84
  await createChangeset(fileName, packageBumps, packageNames);
85
- await simpleGit().add(fileName);
86
- await simpleGit().commit(`chore: add changeset renovate-${shortHash}`);
87
- await simpleGit().push();
85
+ if (!process.env['SKIP_COMMIT']) {
86
+ await simpleGit().add(fileName);
87
+ await simpleGit().commit(`chore: add changeset renovate-${shortHash}`);
88
+ await simpleGit().push();
89
+ }
88
90
  }
89
91
  run().catch(console.error);
90
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/changesets-renovate",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Automatically create changesets for Renovate",
5
5
  "type": "module",
6
6
  "engines": {