Skip to content

Commit a1e7615

Browse files
committed
fix invalid author fields and add metadata to more plugins
Signed-off-by: Nick Boldt <[email protected]>
1 parent 9262a25 commit a1e7615

File tree

19 files changed

+78
-32
lines changed

19 files changed

+78
-32
lines changed

plugins/analytics-module-matomo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@janus-idp/maintainers-plugins",
6161
"@janus-idp/devex-uxe"
6262
],
63-
"author": "'The",
63+
"author": "The Backstage Community",
6464
"homepage": "https://red.ht/rhdh",
6565
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
6666
"keywords": [

plugins/bulk-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@
8484
"maintainers": [
8585
"@janus-idp/maintainers-plugins"
8686
],
87-
"author": "'The"
87+
"author": "The Backstage Community"
8888
}

plugins/feedback-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@
9090
"@janus-idp/maintainers-plugins",
9191
"@janus-idp/devex-uxe"
9292
],
93-
"author": "'The"
93+
"author": "The Backstage Community"
9494
}

plugins/feedback/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@
8484
"@janus-idp/maintainers-plugins",
8585
"@janus-idp/devex-uxe"
8686
],
87-
"author": "'The"
87+
"author": "The Backstage Community"
8888
}

plugins/kiali-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@janus-idp/maintainers-plugins",
8383
"@janus-idp/kiali"
8484
],
85-
"author": "'The",
85+
"author": "The Backstage Community",
8686
"homepage": "https://red.ht/rhdh",
8787
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
8888
"keywords": [

plugins/kiali/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@
110110
"@janus-idp/maintainers-plugins",
111111
"@janus-idp/kiali"
112112
],
113-
"author": "'The"
113+
"author": "The Backstage Community"
114114
}

plugins/kubernetes-actions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@
7777
"maintainers": [
7878
"@janus-idp/maintainers-plugins"
7979
],
80-
"author": "'The"
80+
"author": "The Backstage Community"
8181
}

plugins/matomo-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@
8585
"@janus-idp/maintainers-plugins",
8686
"@janus-idp/devex-uxe"
8787
],
88-
"author": "'The"
88+
"author": "The Backstage Community"
8989
}

plugins/matomo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@
8080
"@janus-idp/maintainers-plugins",
8181
"@janus-idp/devex-uxe"
8282
],
83-
"author": "'The"
83+
"author": "The Backstage Community"
8484
}

plugins/notifications-backend/package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"types": "dist/index.d.ts"
1111
},
1212
"backstage": {
13-
"role": "backend-plugin"
13+
"role": "backend-plugin",
14+
"supported-versions": "1.26.5"
1415
},
1516
"exports": {
1617
".": "./src/index.ts",
@@ -83,5 +84,21 @@
8384
"dist-dynamic/alpha/*",
8485
"config.d.ts",
8586
"users.yaml"
87+
],
88+
"repository": {
89+
"type": "git",
90+
"url": "https://github.com/janus-idp/backstage-plugins",
91+
"directory": "plugins/notifications-backend"
92+
},
93+
"maintainers": [
94+
"@janus-idp/maintainers-plugins",
95+
"@janus-idp/notifications"
96+
],
97+
"author": "The Backstage Community",
98+
"homepage": "https://red.ht/rhdh",
99+
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
100+
"keywords": [
101+
"support:tech-preview",
102+
"lifecycle:active"
86103
]
87104
}

plugins/notifications/package.json

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"types": "dist/index.d.ts"
1212
},
1313
"backstage": {
14-
"role": "frontend-plugin"
14+
"role": "frontend-plugin",
15+
"supported-versions": "1.26.5"
1516
},
1617
"scripts": {
1718
"start": "backstage-cli package start",
@@ -67,11 +68,22 @@
6768
"dist-scalprum",
6869
"app-config.janus-idp.yaml"
6970
],
70-
"repository": "github:janus-idp/backstage-plugins",
71+
"repository": {
72+
"type": "git",
73+
"url": "https://github.com/janus-idp/backstage-plugins",
74+
"directory": "plugins/notifications"
75+
},
7176
"keywords": [
7277
"backstage",
73-
"plugin"
78+
"plugin",
79+
"support:tech-preview",
80+
"lifecycle:active"
81+
],
82+
"homepage": "https://red.ht/rhdh",
83+
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
84+
"maintainers": [
85+
"@janus-idp/maintainers-plugins",
86+
"@janus-idp/notifications"
7487
],
75-
"homepage": "https://janus-idp.io/",
76-
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
88+
"author": "The Backstage Community"
7789
}

plugins/openshift-image-registry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"maintainers": [
6969
"@janus-idp/maintainers-plugins"
7070
],
71-
"author": "'The",
71+
"author": "The Backstage Community",
7272
"homepage": "https://red.ht/rhdh",
7373
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
7474
"keywords": [

plugins/orchestrator-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@
104104
"@janus-idp/maintainers-plugins",
105105
"@janus-idp/orchestrator-codeowners"
106106
],
107-
"author": "'The"
107+
"author": "The Backstage Community"
108108
}

plugins/orchestrator-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@
5959
"@janus-idp/maintainers-plugins",
6060
"@janus-idp/orchestrator-codeowners"
6161
],
62-
"author": "'The"
62+
"author": "The Backstage Community"
6363
}

plugins/orchestrator-swf-editor-envelope/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@
7272
"@janus-idp/maintainers-plugins",
7373
"@janus-idp/orchestrator-codeowners"
7474
],
75-
"author": "'The"
75+
"author": "The Backstage Community"
7676
}

plugins/orchestrator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@
102102
"@janus-idp/maintainers-plugins",
103103
"@janus-idp/orchestrator-codeowners"
104104
],
105-
"author": "'The"
105+
"author": "The Backstage Community"
106106
}

plugins/plugin-metadata.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ supportLevelsJSON="${workingDir}/plugins/plugin-metadata.json"
88
packageMetadata() {
99
which_plugins="$1"
1010
supportLevelsToProcess="$2"
11-
extraflags="$3"
11+
shift 2
12+
extraflags=() # use an array to preserve quotes
13+
while [[ "$#" -gt 0 ]]; do
14+
case $1 in
15+
*) extraflags+=("$1"); shift 1;;
16+
esac
17+
done
1218
for support in $supportLevelsToProcess; do
1319
(( num_s++ )) || true
1420
done
@@ -23,17 +29,17 @@ packageMetadata() {
2329
# @janus-idp/backstage-plugin-[analytics-provider-segment] => plugins/[analytics-provider-segment]
2430
# @janus-idp/backstage-scaffolder-backend-module-[quay] => plugins/[quay]-actions
2531
dir=$(echo "${plugin}" | sed -r \
26-
-e "s|@janus-idp/backstage-plugin-|plugins/|" \
32+
-e "s|@janus-idp/(backstage-\|)plugin-|plugins/|" \
2733
-e "s|@janus-idp/backstage-scaffolder-backend-module-(.+)|plugins/\1-actions|" \
2834
-e "s|@janus-idp/(.+)|plugins/\1|" \
35+
-e "s|annotator-actions|scaffolder-annotator-action|"
2936
)
3037
if [[ ! -d "${workingDir}/${dir}" ]] || [[ ! -f "${workingDir}/${dir}/package.json" ]]; then
31-
echo " [WARNING] ${workingDir}/${dir}/package.json not found! Skipping...";
38+
echo; echo "[$s/$num_s] [$p/$num_p] [WARNING] ${workingDir}/${dir}/package.json not found! Skipping...";
3239
else
3340
echo;echo "[$s/$num_s] [$p/$num_p] Processing ${plugin} in ${dir}"
3441
pushd "${workingDir}" >/dev/null || exit
35-
# shellcheck disable=SC2086
36-
./packages/cli/bin/janus-cli package metadata --dir "${dir}" --keywords "${support},lifecycle:active" $extraflags
42+
./packages/cli/bin/janus-cli package metadata --dir "${dir}" --keywords "${support},lifecycle:active" "${extraflags[@]}"
3743
popd >/dev/null || exit
3844
fi
3945
done
@@ -43,4 +49,4 @@ packageMetadata() {
4349

4450
packageMetadata "showcase-plugins" "support:production support:tech-preview"
4551
packageMetadata "other-plugins" "support:production"
46-
packageMetadata "other-plugins" "support:tech-preview" "--author 'The Backstage Community'"
52+
packageMetadata "other-plugins" "support:tech-preview" --author "The Backstage Community"

plugins/scaffolder-annotator-action/package.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"types": "dist/index.d.ts"
1212
},
1313
"backstage": {
14-
"role": "backend-plugin-module"
14+
"role": "backend-plugin-module",
15+
"supported-versions": "1.26.5"
1516
},
1617
"exports": {
1718
".": "./src/index.ts",
@@ -62,11 +63,21 @@
6263
"dist-dynamic/alpha/*",
6364
"app-config.janus-idp.yaml"
6465
],
65-
"repository": "github:janus-idp/backstage-plugins",
66+
"repository": {
67+
"type": "git",
68+
"url": "https://github.com/janus-idp/backstage-plugins",
69+
"directory": "plugins/scaffolder-annotator-action"
70+
},
6671
"keywords": [
6772
"backstage",
68-
"plugin"
73+
"plugin",
74+
"support:tech-preview",
75+
"lifecycle:active"
76+
],
77+
"homepage": "https://red.ht/rhdh",
78+
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
79+
"maintainers": [
80+
"@janus-idp/maintainers-plugins"
6981
],
70-
"homepage": "https://janus-idp.io/",
71-
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
82+
"author": "The Backstage Community"
7283
}

plugins/web-terminal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"maintainers": [
7878
"@janus-idp/maintainers-plugins"
7979
],
80-
"author": "'The",
80+
"author": "The Backstage Community",
8181
"homepage": "https://red.ht/rhdh",
8282
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
8383
"keywords": [

0 commit comments

Comments
 (0)