Skip to content

Commit bb36f0f

Browse files
Version Packages (#1730)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a46cdf1 commit bb36f0f

File tree

13 files changed

+149
-32
lines changed

13 files changed

+149
-32
lines changed

workspaces/scorecard/.changeset/olive-months-cross.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

workspaces/scorecard/plugins/scorecard-backend-module-github/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# @red-hat-developer-hub/backstage-plugin-scorecard-backend-module-github
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- 5d447f1: **BREAKING**: The `supportsEntity` function has been replaced with `getCatalogFilter` for `MetricProvider`. The new function returns a catalog filter instead of taking an entity parameter and returning a boolean. This allows the plugin to query the catalog for entities that support the metric provider.
8+
9+
These changes are **required** to your `MyMetricProvider`:
10+
11+
```diff
12+
export class MyMetricProvider implements MetricProvider {
13+
14+
- supportsEntity(entity: Entity): boolean {
15+
- return entity.metadata.annotations?.['my/annotation'] !== undefined;
16+
- }
17+
+ getCatalogFilter(): Record<string, string | symbol | (string | symbol)[]> {
18+
+ return {
19+
+ 'metadata.annotations.my/annotation': CATALOG_FILTER_EXISTS,
20+
+ };
21+
+ }
22+
```
23+
24+
Implemented database support. Implemented scheduler to fetch metrics by provider and to cleanup outdated metrics from database.
25+
26+
### Patch Changes
27+
28+
- Updated dependencies [5d447f1]
29+
- @red-hat-developer-hub/backstage-plugin-scorecard-node@2.0.0
30+
- @red-hat-developer-hub/backstage-plugin-scorecard-common@2.0.0
31+
332
## 1.0.0
433

534
### Major Changes

workspaces/scorecard/plugins/scorecard-backend-module-github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-github",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"license": "Apache-2.0",
55
"description": "The github backend module for the scorecard plugin.",
66
"main": "src/index.ts",

workspaces/scorecard/plugins/scorecard-backend-module-jira/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# @red-hat-developer-hub/backstage-plugin-scorecard-backend-module-jira
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- 5d447f1: **BREAKING**: The `supportsEntity` function has been replaced with `getCatalogFilter` for `MetricProvider`. The new function returns a catalog filter instead of taking an entity parameter and returning a boolean. This allows the plugin to query the catalog for entities that support the metric provider.
8+
9+
These changes are **required** to your `MyMetricProvider`:
10+
11+
```diff
12+
export class MyMetricProvider implements MetricProvider {
13+
14+
- supportsEntity(entity: Entity): boolean {
15+
- return entity.metadata.annotations?.['my/annotation'] !== undefined;
16+
- }
17+
+ getCatalogFilter(): Record<string, string | symbol | (string | symbol)[]> {
18+
+ return {
19+
+ 'metadata.annotations.my/annotation': CATALOG_FILTER_EXISTS,
20+
+ };
21+
+ }
22+
```
23+
24+
Implemented database support. Implemented scheduler to fetch metrics by provider and to cleanup outdated metrics from database.
25+
26+
### Patch Changes
27+
28+
- Updated dependencies [5d447f1]
29+
- @red-hat-developer-hub/backstage-plugin-scorecard-node@2.0.0
30+
- @red-hat-developer-hub/backstage-plugin-scorecard-common@2.0.0
31+
332
## 1.0.1
433

534
### Patch Changes

workspaces/scorecard/plugins/scorecard-backend-module-jira/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-jira",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"license": "Apache-2.0",
55
"description": "The jira backend module for the scorecard plugin.",
66
"main": "src/index.ts",

workspaces/scorecard/plugins/scorecard-backend/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# @red-hat-developer-hub/backstage-plugin-scorecard-backend
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- 5d447f1: **BREAKING**: The `supportsEntity` function has been replaced with `getCatalogFilter` for `MetricProvider`. The new function returns a catalog filter instead of taking an entity parameter and returning a boolean. This allows the plugin to query the catalog for entities that support the metric provider.
8+
9+
These changes are **required** to your `MyMetricProvider`:
10+
11+
```diff
12+
export class MyMetricProvider implements MetricProvider {
13+
14+
- supportsEntity(entity: Entity): boolean {
15+
- return entity.metadata.annotations?.['my/annotation'] !== undefined;
16+
- }
17+
+ getCatalogFilter(): Record<string, string | symbol | (string | symbol)[]> {
18+
+ return {
19+
+ 'metadata.annotations.my/annotation': CATALOG_FILTER_EXISTS,
20+
+ };
21+
+ }
22+
```
23+
24+
Implemented database support. Implemented scheduler to fetch metrics by provider and to cleanup outdated metrics from database.
25+
26+
### Patch Changes
27+
28+
- Updated dependencies [5d447f1]
29+
- @red-hat-developer-hub/backstage-plugin-scorecard-node@2.0.0
30+
- @red-hat-developer-hub/backstage-plugin-scorecard-common@2.0.0
31+
332
## 1.0.0
433

534
### Major Changes

workspaces/scorecard/plugins/scorecard-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@red-hat-developer-hub/backstage-plugin-scorecard-backend",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"license": "Apache-2.0",
55
"main": "src/index.ts",
66
"types": "src/index.ts",

workspaces/scorecard/plugins/scorecard-common/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @red-hat-developer-hub/backstage-plugin-scorecard-common
22

3+
## 2.0.0
4+
35
## 1.0.0
46

57
### Major Changes

workspaces/scorecard/plugins/scorecard-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@red-hat-developer-hub/backstage-plugin-scorecard-common",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"license": "Apache-2.0",
55
"description": "Common functionalities for the scorecard plugin",
66
"main": "src/index.ts",

workspaces/scorecard/plugins/scorecard-node/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# @red-hat-developer-hub/backstage-plugin-scorecard-node
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- 5d447f1: **BREAKING**: The `supportsEntity` function has been replaced with `getCatalogFilter` for `MetricProvider`. The new function returns a catalog filter instead of taking an entity parameter and returning a boolean. This allows the plugin to query the catalog for entities that support the metric provider.
8+
9+
These changes are **required** to your `MyMetricProvider`:
10+
11+
```diff
12+
export class MyMetricProvider implements MetricProvider {
13+
14+
- supportsEntity(entity: Entity): boolean {
15+
- return entity.metadata.annotations?.['my/annotation'] !== undefined;
16+
- }
17+
+ getCatalogFilter(): Record<string, string | symbol | (string | symbol)[]> {
18+
+ return {
19+
+ 'metadata.annotations.my/annotation': CATALOG_FILTER_EXISTS,
20+
+ };
21+
+ }
22+
```
23+
24+
Implemented database support. Implemented scheduler to fetch metrics by provider and to cleanup outdated metrics from database.
25+
26+
### Patch Changes
27+
28+
- @red-hat-developer-hub/backstage-plugin-scorecard-common@2.0.0
29+
330
## 1.0.0
431

532
### Major Changes

0 commit comments

Comments
 (0)