@scaleway/changesets-renovate 2.0.5 → 2.1.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/README.md +12 -0
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,4 +22,16 @@ To skip committing the changeset.
|
|
|
22
22
|
SKIP_COMMIT=TRUE changesets-renovate
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
To have a custom prefix for renovate branch name instead of `renovate/`
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
BRANCH_PREFIX=dep-upgrade changesets-renovate
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
To skip checking the branch name starts `renovate/`
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
SKIP_BRANCH_CHECK=TRUE changesets-renovate
|
|
35
|
+
```
|
|
36
|
+
|
|
25
37
|
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
|
@@ -64,8 +64,9 @@ async function getBumps(files) {
|
|
|
64
64
|
}
|
|
65
65
|
async function run() {
|
|
66
66
|
const branch = await simpleGit().branch();
|
|
67
|
+
const branchPrefix = process.env["BRANCH_PREFIX"] ?? "renovate/";
|
|
67
68
|
console.log("Detected branch:", branch);
|
|
68
|
-
if (!branch.current.startsWith("
|
|
69
|
+
if (!branch.current.startsWith(branchPrefix) && !process.env["SKIP_BRANCH_CHECK"]) {
|
|
69
70
|
console.log("Not a renovate branch, skipping");
|
|
70
71
|
return;
|
|
71
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/changesets-renovate",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Automatically create changesets for Renovate",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"sync"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"simple-git": "3.
|
|
39
|
+
"simple-git": "3.26.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"prebuild": "shx rm -rf dist",
|