Skip to content

Commit 671e690

Browse files
authored
Merge branch 'main' into scorecard-file-level-checks
2 parents 9b4f0d1 + 0fda0c7 commit 671e690

File tree

292 files changed

+15933
-10158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+15933
-10158
lines changed

.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,15 @@ module.exports = {
243243
].flat(),
244244
},
245245
overrides: [
246+
{
247+
// .cjs is not matched by **/*.[jt]s?(x); without this, espree defaults to ES5 and
248+
// modern syntax (const, class fields) in e.g. jest-environment-*.cjs fails parsing.
249+
files: ['**/*.cjs'],
250+
parserOptions: {
251+
ecmaVersion: 'latest',
252+
sourceType: 'script',
253+
},
254+
},
246255
{
247256
files: ['**/*.[jt]s?(x)'],
248257
excludedFiles: '**/*.{test,spec}.[jt]s?(x)',

.github/labeler.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
workspace/adoption-insights:
2+
- 'Workspace\\s*adoption-insights'
3+
4+
workspace/ai-integrations:
5+
- 'Workspace\\s*ai-integrations'
6+
7+
workspace/app-defaults:
8+
- 'Workspace\\s*app-defaults'
9+
10+
workspace/augment:
11+
- 'Workspace\\s*augment'
12+
13+
workspace/bulk-import:
14+
- 'Workspace\\s*bulk-import'
15+
16+
workspace/cost-management:
17+
- 'Workspace\\s*cost-management'
18+
19+
workspace/dcm:
20+
- 'Workspace\\s*dcm'
21+
22+
workspace/extensions:
23+
- 'Workspace\\s*extensions'
24+
25+
workspace/global-floating-action-button:
26+
- 'Workspace\\s*global-floating-action-button'
27+
28+
workspace/global-header:
29+
- 'Workspace\\s*global-header'
30+
31+
workspace/homepage:
32+
- 'Workspace\\s*homepage'
33+
34+
workspace/konflux:
35+
- 'Workspace\\s*konflux'
36+
37+
workspace/lightspeed:
38+
- 'Workspace\\s*lightspeed'
39+
40+
workspace/mcp-integrations:
41+
- 'Workspace\\s*mcp-integrations'
42+
43+
workspace/noop:
44+
- 'Workspace\\s*noop'
45+
46+
workspace/orchestrator:
47+
- 'Workspace\\s*orchestrator'
48+
49+
workspace/quickstart:
50+
- 'Workspace\\s*quickstart'
51+
52+
workspace/repo-tools:
53+
- 'Workspace\\s*repo-tools'
54+
55+
workspace/sandbox:
56+
- 'Workspace\\s*sandbox'
57+
58+
workspace/scorecard:
59+
- 'Workspace\\s*scorecard'
60+
61+
workspace/theme:
62+
- 'Workspace\\s*theme'
63+
64+
workspace/translations:
65+
- 'Workspace\\s*translations'
66+
67+
workspace/x2a:
68+
- 'Workspace\\s*x2a'

.github/pr-labeler.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
workspace/adoption-insights:
2+
- changed-files:
3+
- any-glob-to-any-file: ['workspaces/adoption-insights/**']
4+
5+
workspace/ai-integrations:
6+
- changed-files:
7+
- any-glob-to-any-file: ['workspaces/ai-integrations/**']
8+
9+
workspace/app-defaults:
10+
- changed-files:
11+
- any-glob-to-any-file: ['workspaces/app-defaults/**']
12+
13+
workspace/augment:
14+
- changed-files:
15+
- any-glob-to-any-file: ['workspaces/augment/**']
16+
17+
workspace/bulk-import:
18+
- changed-files:
19+
- any-glob-to-any-file: ['workspaces/bulk-import/**']
20+
21+
workspace/cost-management:
22+
- changed-files:
23+
- any-glob-to-any-file: ['workspaces/cost-management/**']
24+
25+
workspace/dcm:
26+
- changed-files:
27+
- any-glob-to-any-file: ['workspaces/dcm/**']
28+
29+
workspace/extensions:
30+
- changed-files:
31+
- any-glob-to-any-file: ['workspaces/extensions/**']
32+
33+
workspace/global-floating-action-button:
34+
- changed-files:
35+
- any-glob-to-any-file: ['workspaces/global-floating-action-button/**']
36+
37+
workspace/global-header:
38+
- changed-files:
39+
- any-glob-to-any-file: ['workspaces/global-header/**']
40+
41+
workspace/homepage:
42+
- changed-files:
43+
- any-glob-to-any-file: ['workspaces/homepage/**']
44+
45+
workspace/konflux:
46+
- changed-files:
47+
- any-glob-to-any-file: ['workspaces/konflux/**']
48+
49+
workspace/lightspeed:
50+
- changed-files:
51+
- any-glob-to-any-file: ['workspaces/lightspeed/**']
52+
53+
workspace/mcp-integrations:
54+
- changed-files:
55+
- any-glob-to-any-file: ['workspaces/mcp-integrations/**']
56+
57+
workspace/noop:
58+
- changed-files:
59+
- any-glob-to-any-file: ['workspaces/noop/**']
60+
61+
workspace/orchestrator:
62+
- changed-files:
63+
- any-glob-to-any-file: ['workspaces/orchestrator/**']
64+
65+
workspace/quickstart:
66+
- changed-files:
67+
- any-glob-to-any-file: ['workspaces/quickstart/**']
68+
69+
workspace/repo-tools:
70+
- changed-files:
71+
- any-glob-to-any-file: ['workspaces/repo-tools/**']
72+
73+
workspace/sandbox:
74+
- changed-files:
75+
- any-glob-to-any-file: ['workspaces/sandbox/**']
76+
77+
workspace/scorecard:
78+
- changed-files:
79+
- any-glob-to-any-file: ['workspaces/scorecard/**']
80+
81+
workspace/theme:
82+
- changed-files:
83+
- any-glob-to-any-file: ['workspaces/theme/**']
84+
85+
workspace/translations:
86+
- changed-files:
87+
- any-glob-to-any-file: ['workspaces/translations/**']
88+
89+
workspace/x2a:
90+
- changed-files:
91+
- any-glob-to-any-file: ['workspaces/x2a/**']
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# PR and issue workspace path labels (workspace/<dir>) for search and triage.
2+
# Based on: https://github.com/backstage/community-plugins/blob/main/.github/workflows/add-workspace-label.yml
3+
name: Add workspace labels to PRs
4+
5+
on:
6+
issues:
7+
types: [opened, edited]
8+
pull_request_target:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
14+
jobs:
15+
triage-issues:
16+
if: github.event_name == 'issues'
17+
runs-on: ubuntu-latest
18+
permissions:
19+
issues: write
20+
contents: read
21+
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
24+
with:
25+
egress-policy: audit
26+
27+
- uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 #v3.4
28+
with:
29+
configuration-path: .github/labeler.yml
30+
enable-versioned-regex: 0
31+
repo-token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
label-prs:
34+
runs-on: ubuntu-latest
35+
permissions:
36+
pull-requests: write
37+
contents: read
38+
steps:
39+
- name: Harden Runner
40+
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
41+
with:
42+
egress-policy: audit
43+
44+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
45+
with:
46+
configuration-path: .github/pr-labeler.yml
47+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/toml-checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1616
- uses: tombi-toml/setup-tombi@cebfd308ba02edadfcee148b7473536990950c92 # v1.0.8
1717
with:
18-
version: 'v0.7.22'
19-
checksum: '2f96342066b02ac374b2b457c9927264fd086256c1c6ccc817eced8367f1d83c'
18+
version: 'v0.9.9'
19+
checksum: 'b50dbc90ec27591dbaf564b628bd3b3e4ead371a60931bc8ea5f34d7cd1d3607'
2020
- name: Validate TOML files
2121
run: tombi lint

.pr_agent.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[jira]
2+
jira_base_url = "https://redhat.atlassian.net"
3+
4+
[github_app]
5+
# what should be launched automatically
6+
pr_commands = [
7+
"/agentic_review",
8+
"/agentic_describe --pr_description.final_update_message=false",
9+
"/generate_labels",
10+
]
11+
12+
[pr_test]
13+
enable=false
14+
15+
[review_agent]
16+
comments_location_policy = "summary"
17+
18+
[checks]
19+
enable_auto_checks_feedback = true
20+
persistent_comment = true
21+
final_update_message = false
22+
23+
[config]
24+
ignore_pr_authors = ["renovate", "rhdh-bot", "dependabot"]
25+
26+
[rag_arguments]
27+
enable_rag=true
28+
rag_repo_list=['redhat-developer/rhdh','redhat-developer/red-hat-developers-documentation-rhdh']

pr_agent.toml

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

workspaces/adoption-insights/.changeset/orange-falcons-shake.md

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

workspaces/adoption-insights/plugins/adoption-insights-backend/CHANGELOG.md

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

3+
## 0.7.1
4+
5+
### Patch Changes
6+
7+
- @red-hat-developer-hub/backstage-plugin-adoption-insights-common@0.7.1
8+
39
## 0.7.0
410

511
### Minor Changes

workspaces/adoption-insights/plugins/adoption-insights-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-adoption-insights-backend",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"license": "Apache-2.0",
55
"main": "src/index.ts",
66
"types": "src/index.ts",

0 commit comments

Comments
 (0)