Skip to content

Commit ae211d2

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

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
@@ -59,7 +59,7 @@
5959
"@janus-idp/maintainers-plugins",
6060
"@janus-idp/devex-uxe"
6161
],
62-
"author": "'The",
62+
"author": "The Backstage Community",
6363
"homepage": "https://red.ht/rhdh",
6464
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
6565
"keywords": [

plugins/bulk-import/package.json

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

plugins/feedback-backend/package.json

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

plugins/feedback/package.json

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

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
@@ -109,5 +109,5 @@
109109
"@janus-idp/maintainers-plugins",
110110
"@janus-idp/kiali"
111111
],
112-
"author": "'The"
112+
"author": "The Backstage Community"
113113
}

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
@@ -79,5 +79,5 @@
7979
"@janus-idp/maintainers-plugins",
8080
"@janus-idp/devex-uxe"
8181
],
82-
"author": "'The"
82+
"author": "The Backstage Community"
8383
}

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",
@@ -66,11 +67,22 @@
6667
"dist-scalprum",
6768
"app-config.janus-idp.yaml"
6869
],
69-
"repository": "github:janus-idp/backstage-plugins",
70+
"repository": {
71+
"type": "git",
72+
"url": "https://github.com/janus-idp/backstage-plugins",
73+
"directory": "plugins/notifications"
74+
},
7075
"keywords": [
7176
"backstage",
72-
"plugin"
77+
"plugin",
78+
"support:tech-preview",
79+
"lifecycle:active"
80+
],
81+
"homepage": "https://red.ht/rhdh",
82+
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
83+
"maintainers": [
84+
"@janus-idp/maintainers-plugins",
85+
"@janus-idp/notifications"
7386
],
74-
"homepage": "https://janus-idp.io/",
75-
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
87+
"author": "The Backstage Community"
7688
}

plugins/openshift-image-registry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"maintainers": [
6868
"@janus-idp/maintainers-plugins"
6969
],
70-
"author": "'The",
70+
"author": "The Backstage Community",
7171
"homepage": "https://red.ht/rhdh",
7272
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
7373
"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
@@ -101,5 +101,5 @@
101101
"@janus-idp/maintainers-plugins",
102102
"@janus-idp/orchestrator-codeowners"
103103
],
104-
"author": "'The"
104+
"author": "The Backstage Community"
105105
}

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
@@ -76,7 +76,7 @@
7676
"maintainers": [
7777
"@janus-idp/maintainers-plugins"
7878
],
79-
"author": "'The",
79+
"author": "The Backstage Community",
8080
"homepage": "https://red.ht/rhdh",
8181
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
8282
"keywords": [

0 commit comments

Comments
 (0)