Skip to content

Commit 5c5003f

Browse files
Merge remote-tracking branch 'gitHub/main' into task/main/DURACOM-456
2 parents 8a200e7 + f112533 commit 5c5003f

260 files changed

Lines changed: 22121 additions & 9487 deletions

File tree

Some content is hidden

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

.github/dependabot.yml

Lines changed: 83 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,27 @@ updates:
107107
# some classes of supply chain attacks
108108
cooldown:
109109
default-days: 7
110+
groups:
111+
# Group together all GitHub official actions into a single PR
112+
github-actions:
113+
applies-to: version-updates
114+
patterns:
115+
- "actions/*"
116+
- "github/*"
117+
ignore:
118+
# For official GitHub actions, ignore minor & patch releases because we reference these actions
119+
# via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6")
120+
- dependency-name: "actions/*"
121+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
122+
- dependency-name: "github/*"
123+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
110124
#####################
111-
## dspace-9_x branch
125+
## dspace-10_x branch
112126
#####################
113127
- package-ecosystem: "npm"
114128
directory: "/"
115-
target-branch: dspace-9_x
129+
target-branch: dspace-10_x
130+
# Monthly dependency updates (NOTE: "schedule" doesn't apply to security updates)
116131
schedule:
117132
interval: "monthly"
118133
time: "05:00"
@@ -124,7 +139,7 @@ updates:
124139
open-pull-requests-limit: 10
125140
# Group together Angular package upgrades
126141
groups:
127-
# Group together all patch version updates for Angular in a single PR
142+
# Group together all minor/patch version updates for Angular in a single PR
128143
angular:
129144
applies-to: version-updates
130145
patterns:
@@ -138,7 +153,6 @@ updates:
138153
applies-to: version-updates
139154
patterns:
140155
- "@ngrx*"
141-
- "@ngtools/webpack"
142156
update-types:
143157
- "minor"
144158
- "patch"
@@ -198,10 +212,10 @@ updates:
198212
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
199213
- dependency-name: "*"
200214
update-types: ["version-update:semver-major"]
201-
# Also automatically update all our GitHub actions on the dspace-9_x branch
215+
# Also automatically update all our GitHub actions on the dspace-10_x branch
202216
- package-ecosystem: "github-actions"
203217
directory: "/"
204-
target-branch: dspace-9_x
218+
target-branch: dspace-10_x
205219
# Monthly dependency updates
206220
schedule:
207221
interval: "monthly"
@@ -210,12 +224,26 @@ updates:
210224
# some classes of supply chain attacks
211225
cooldown:
212226
default-days: 7
227+
groups:
228+
# Group together all GitHub official actions into a single PR
229+
github-actions:
230+
applies-to: version-updates
231+
patterns:
232+
- "actions/*"
233+
- "github/*"
234+
ignore:
235+
# For official GitHub actions, ignore minor & patch releases because we reference these actions
236+
# via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6")
237+
- dependency-name: "actions/*"
238+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
239+
- dependency-name: "github/*"
240+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
213241
#####################
214-
## dspace-8_x branch
242+
## dspace-9_x branch
215243
#####################
216244
- package-ecosystem: "npm"
217245
directory: "/"
218-
target-branch: dspace-8_x
246+
target-branch: dspace-9_x
219247
schedule:
220248
interval: "monthly"
221249
time: "05:00"
@@ -241,6 +269,7 @@ updates:
241269
applies-to: version-updates
242270
patterns:
243271
- "@ngrx*"
272+
- "@ngtools/webpack"
244273
update-types:
245274
- "minor"
246275
- "patch"
@@ -300,10 +329,10 @@ updates:
300329
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
301330
- dependency-name: "*"
302331
update-types: ["version-update:semver-major"]
303-
# Also automatically update all our GitHub actions on the dspace-8_x branch
332+
# Also automatically update all our GitHub actions on the dspace-9_x branch
304333
- package-ecosystem: "github-actions"
305334
directory: "/"
306-
target-branch: dspace-8_x
335+
target-branch: dspace-9_x
307336
# Monthly dependency updates
308337
schedule:
309338
interval: "monthly"
@@ -312,12 +341,26 @@ updates:
312341
# some classes of supply chain attacks
313342
cooldown:
314343
default-days: 7
344+
groups:
345+
# Group together all GitHub official actions into a single PR
346+
github-actions:
347+
applies-to: version-updates
348+
patterns:
349+
- "actions/*"
350+
- "github/*"
351+
ignore:
352+
# For official GitHub actions, ignore minor & patch releases because we reference these actions
353+
# via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6")
354+
- dependency-name: "actions/*"
355+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
356+
- dependency-name: "github/*"
357+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
315358
#####################
316-
## dspace-7_x branch
359+
## dspace-8_x branch
317360
#####################
318361
- package-ecosystem: "npm"
319362
directory: "/"
320-
target-branch: dspace-7_x
363+
target-branch: dspace-8_x
321364
schedule:
322365
interval: "monthly"
323366
time: "05:00"
@@ -329,7 +372,7 @@ updates:
329372
open-pull-requests-limit: 10
330373
# Group together Angular package upgrades
331374
groups:
332-
# Group together all minor/patch version updates for Angular in a single PR
375+
# Group together all patch version updates for Angular in a single PR
333376
angular:
334377
applies-to: version-updates
335378
patterns:
@@ -384,10 +427,18 @@ updates:
384427
update-types:
385428
- "minor"
386429
- "patch"
430+
# Group together any webpack related version updates
431+
webpack:
432+
applies-to: version-updates
433+
patterns:
434+
- "webpack*"
435+
update-types:
436+
- "minor"
437+
- "patch"
387438
ignore:
388-
# 7.x Cannot update Webpack past v5.76.1 as later versions not supported by Angular 15
389-
# See also https://github.com/DSpace/dspace-angular/pull/3283#issuecomment-2372488489
390-
- dependency-name: "webpack"
439+
# 8.x cannot update sass to v1.100.0 or later as those versions do not support Node v18
440+
- dependency-name: "sass"
441+
versions: [">=1.100.0"]
391442
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
392443
- dependency-name: "zone.js"
393444
update-types: ["version-update:semver-major", "version-update:semver-minor"]
@@ -397,10 +448,10 @@ updates:
397448
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
398449
- dependency-name: "*"
399450
update-types: ["version-update:semver-major"]
400-
# Also automatically update all our GitHub actions on the dspace-7_x branch
451+
# Also automatically update all our GitHub actions on the dspace-8_x branch
401452
- package-ecosystem: "github-actions"
402453
directory: "/"
403-
target-branch: dspace-7_x
454+
target-branch: dspace-8_x
404455
# Monthly dependency updates
405456
schedule:
406457
interval: "monthly"
@@ -409,3 +460,17 @@ updates:
409460
# some classes of supply chain attacks
410461
cooldown:
411462
default-days: 7
463+
groups:
464+
# Group together all GitHub official actions into a single PR
465+
github-actions:
466+
applies-to: version-updates
467+
patterns:
468+
- "actions/*"
469+
- "github/*"
470+
ignore:
471+
# For official GitHub actions, ignore minor & patch releases because we reference these actions
472+
# via a major version tag which automatically uses the latest minor/patch version (e.g. "actions/checkout@v6")
473+
- dependency-name: "actions/*"
474+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]
475+
- dependency-name: "github/*"
476+
update-types: [ "version-update:semver-minor", "version-update:semver-patch"]

.github/workflows/build.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ jobs:
4040
# Project name to use when running "docker compose" prior to e2e tests
4141
COMPOSE_PROJECT_NAME: 'ci'
4242
# Docker Registry to use for Docker compose scripts below.
43-
# We use GitHub's Container Registry to avoid aggressive rate limits at DockerHub.
44-
DOCKER_REGISTRY: ghcr.io
43+
# On the upstream dspace/dspace-angular repository we use GitHub's Container Registry
44+
# (ghcr.io) to avoid aggressive rate limits at DockerHub. Forks cannot authenticate
45+
# against ghcr.io/dspace/* with their own GITHUB_TOKEN (and the images there require
46+
# auth), so on forks we fall back to docker.io where the same images are public.
47+
DOCKER_REGISTRY: ${{ github.repository == 'dspace/dspace-angular' && 'ghcr.io' || 'docker.io' }}
4548
strategy:
4649
# Create a matrix of Node versions to test against (in parallel)
4750
matrix:
@@ -121,9 +124,14 @@ jobs:
121124
path: 'coverage/dspace-angular/lcov.info'
122125
retention-days: 14
123126

124-
# Login to our Docker registry, so that we can access private Docker images using "docker compose" below.
127+
# Login to our Docker registry, so that we can access Docker images using "docker compose" below.
128+
# This login is required on the upstream repository because DOCKER_REGISTRY is set to ghcr.io
129+
# and pulling ghcr.io/dspace/* requires authentication. On forks, DOCKER_REGISTRY falls back to
130+
# docker.io (see env block above) where the same images are publicly pullable without a login,
131+
# and forks cannot authenticate against ghcr.io/dspace/* with their own GITHUB_TOKEN anyway.
125132
- name: Login to ${{ env.DOCKER_REGISTRY }}
126133
uses: docker/login-action@v4
134+
if: github.repository == 'dspace/dspace-angular'
127135
with:
128136
registry: ${{ env.DOCKER_REGISTRY }}
129137
username: ${{ github.repository_owner }}
@@ -141,7 +149,7 @@ jobs:
141149
# https://github.com/cypress-io/github-action
142150
# (NOTE: to run these e2e tests locally, just use 'ng e2e')
143151
- name: Run e2e tests (integration tests)
144-
uses: cypress-io/github-action@v7.1.9
152+
uses: cypress-io/github-action@v7.4.0
145153
with:
146154
# Run tests in Chrome, headless mode (default)
147155
browser: chrome
@@ -314,6 +322,9 @@ jobs:
314322
codecov:
315323
# Must run after 'tests' job above
316324
needs: tests
325+
# Only run on the upstream repository: forks do not have the CODECOV_TOKEN secret,
326+
# and Codecov refuses to create a commit on a protected branch without a token.
327+
if: github.repository == 'dspace/dspace-angular'
317328
runs-on: ubuntu-latest
318329
steps:
319330
- name: Checkout

.github/workflows/issue_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# Only add to project board if issue is flagged as "needs triage" or has no labels
1717
# NOTE: By default we flag new issues as "needs triage" in our issue template
1818
if: (contains(github.event.issue.labels.*.name, 'needs triage') || join(github.event.issue.labels.*.name) == '')
19-
uses: actions/add-to-project@v1.0.2
19+
uses: actions/add-to-project@v2
2020
# Note, the authentication token below is an ORG level Secret.
2121
# It must be created/recreated manually via a personal access token with admin:org, project, public_repo permissions
2222
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token

.github/workflows/pull_request_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
# Assign the PR to whomever created it. This is useful for visualizing assignments on project boards
2222
# See https://github.com/toshimaru/auto-author-assign
2323
- name: Assign PR to creator
24-
uses: toshimaru/auto-author-assign@v3.0.1
24+
uses: toshimaru/auto-author-assign@v3.0.2

config/config.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ addToAnyPlugin:
798798
# 3. You will get a HTML e.g. <a class="a2a_button_facebook"></a> where "facebook" is part you want to include in list
799799
buttons:
800800
- facebook
801-
- twitter
801+
- x
802802
- linkedin
803803
- email
804804
- copy_link

0 commit comments

Comments
 (0)