@digigov/cli-lab 1.2.6 → 1.2.7
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.json +12 -0
- package/CHANGELOG.md +8 -1
- package/lib/changed-packages/index.mjs +3 -1
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-lab",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "1.2.7",
|
|
6
|
+
"tag": "@digigov/cli-lab_v1.2.7",
|
|
7
|
+
"date": "Wed, 30 Mar 2022 12:28:30 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "use correct targetBranch in changed-packages"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "1.2.6",
|
|
6
18
|
"tag": "@digigov/cli-lab_v1.2.6",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @digigov/cli-lab
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 30 Mar 2022 12:28:30 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.2.7
|
|
6
|
+
Wed, 30 Mar 2022 12:28:30 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- use correct targetBranch in changed-packages
|
|
4
11
|
|
|
5
12
|
## 1.2.6
|
|
6
13
|
Thu, 17 Mar 2022 10:24:06 GMT
|
|
@@ -8,12 +8,14 @@ export default async function changedPackages() {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
function reduceScripts(projects) {
|
|
11
|
+
let targetBranch = process.env.CI_MERGE_REQUEST_TARGET_BRANCH_SHA || process.env.CI_DEFAULT_BRANCH || 'origin/main' || 'main';
|
|
12
|
+
targetBranch = `origin/${targetBranch.replace(/^origin\//, '')}`;
|
|
11
13
|
return projects.reduce((allPackages, project) => {
|
|
12
14
|
const {
|
|
13
15
|
packageName,
|
|
14
16
|
projectFolder
|
|
15
17
|
} = project
|
|
16
|
-
const { stdout } = spawn('git', ['diff',
|
|
18
|
+
const { stdout } = spawn('git', ['diff', targetBranch, '--', projectFolder])
|
|
17
19
|
if (!stdout.toString().trim()) {
|
|
18
20
|
return allPackages
|
|
19
21
|
}
|