Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
9d10286
test(unit): adapt activity and notification tests to RowVisibilitySer…
blizzz Nov 11, 2026
27b51df
feat(contexts): give applications and their tables and views a techni…
rjzondervan Nov 4, 2026
fb79bab
Merge branch 'feat/3093/row-uuid' into feat/3094/2-row-routes-by-name
rjzondervan Nov 11, 2026
b170006
feat(rows): address rows on api/2 by application and table technical …
rjzondervan Nov 11, 2026
f0842bf
Merge pull request #3254 from nextcloud/fix/noid/unit-tests
blizzz Nov 11, 2026
0067147
fix(l10n): Update translations from Transifex
nextcloud-bot Nov 12, 2026
8846e0b
fix(l10n): Update translations from Transifex
nextcloud-bot Nov 13, 2026
ddc73ad
fix(a11y): give each icon in the icon picker its own screen reader name
AhmadAnzar Nov 13, 2026
1cd0439
fix(a11y): describe icon pictograms and avoid double escaping
AhmadAnzar Nov 13, 2026
a09d2f0
fix(l10n): Update translations from Transifex
nextcloud-bot Nov 14, 2026
0264441
chore(deps): update dependency psalm/phar to ^6.20.9
renovate[bot] Nov 14, 2026
875187a
Merge pull request #3269 from nextcloud/renovate/main-psalm-phar-6.x
github-actions[bot] Nov 14, 2026
e132d98
fix(deps): update dependency vue to ^3.5.45
renovate[bot] Nov 14, 2026
4eb69f3
chore(deps): update dependency @playwright/test to ^1.65.0
renovate[bot] Nov 14, 2026
29142cc
Merge pull request #3272 from nextcloud/renovate/main-playwright-mono…
github-actions[bot] Nov 14, 2026
3147c39
Merge pull request #3271 from nextcloud/renovate/main-vue-monorepo
github-actions[bot] Nov 14, 2026
f06a1f9
chore(deps): update dependency psalm/phar to ^6.20.10
renovate[bot] Nov 14, 2026
1764837
Merge pull request #3273 from nextcloud/renovate/main-psalm-phar-6.x
github-actions[bot] Nov 14, 2026
57d3c4d
chore(deps): update dependency eslint to ^10.14.0
renovate[bot] Nov 14, 2026
23fe5a2
Merge pull request #3275 from nextcloud/renovate/main-eslint-monorepo
github-actions[bot] Nov 15, 2026
ba2c81d
fix(deps): update tiptap to ^3.33.0
renovate[bot] Nov 15, 2026
6bb544c
Merge pull request #3277 from nextcloud/renovate/main-tiptap
github-actions[bot] Nov 15, 2026
76e41a7
chore(dev-deps): Bump nextcloud/ocp package
nextcloud-command Nov 15, 2026
3abf7dc
Merge pull request #3283 from nextcloud/automated/noid/main-update-ne…
github-actions[bot] Nov 15, 2026
2d8f61a
fix(deps): update dependency phpoffice/phpspreadsheet to ^5.11.0
renovate[bot] Nov 15, 2026
56ceb3f
Merge pull request #3286 from nextcloud/renovate/main-phpoffice-phpsp…
github-actions[bot] Nov 15, 2026
9ef0ba6
build(vendor): mark phpoffice/wmf as a prod dep
blizzz Nov 16, 2026
c741033
feat(contexts): name applications and their nodes by slug
rjzondervan Nov 13, 2026
a3a18f3
Merge branch 'feat/3094/1-technical-names' into feat/3094/2-row-route…
rjzondervan Nov 16, 2026
b8871a9
feat(rows): address rows on api/2 by application and table slug
rjzondervan Nov 13, 2026
7cb8e08
Merge pull request #3290 from nextcloud/fix/noid/scoper
blizzz Nov 16, 2026
4e2b059
chore(deps): update dependency @rollup/rollup-linux-x64-gnu to ^4.68.1
renovate[bot] Nov 16, 2026
a20370f
test(rows): cover the api/2 row routes by application and table slug
rjzondervan Nov 16, 2026
f8c7c42
Merge pull request #3274 from nextcloud/renovate/main-rollup-rollup-l…
github-actions[bot] Nov 16, 2026
ccd80a2
fix(a11y): refine icon names after review
AhmadAnzar Nov 16, 2026
5a31380
Merge pull request #3268 from AhmadAnzar/fix/3257/icon-picker-labels
blizzz Nov 16, 2026
621db0d
fix(deps): update dependency @material-symbols/svg-400 to ^0.48.3
renovate[bot] Nov 16, 2026
9575f7c
Merge remote-tracking branch 'origin/main' into feat/3094/1-technical…
rjzondervan Nov 16, 2026
97260e4
fix(contexts): check all slugs of an update before writing, in one tr…
rjzondervan Nov 16, 2026
9b8f8c2
Merge pull request #3270 from nextcloud/renovate/main-material-symbol…
github-actions[bot] Nov 16, 2026
b858ee9
docs(contexts): say what the slug lock of a shared application covers
rjzondervan Nov 16, 2026
0e41e18
feat(contexts): carry slugs through the scheme export and import
rjzondervan Nov 16, 2026
1e741c3
fix(contexts): insert an application and its default slug in one tran…
rjzondervan Nov 16, 2026
42c138b
test(contexts): cover default slugs, the import fallback and slug con…
rjzondervan Nov 16, 2026
bff21f9
refactor(contexts): drop the repeated slug key in the user migration …
rjzondervan Nov 16, 2026
e060ea2
docs(contexts): call slugs slugs, with dashes, in the slug code
rjzondervan Nov 16, 2026
e8140f8
refactor(migration): keep the slug backfill independent of ContextSer…
rjzondervan Nov 16, 2026
8426006
fix(contexts): answer a bad or contested slug with 400 instead of 500
rjzondervan Nov 16, 2026
57afceb
test(contexts): compare the imported node slugs without a string cast
rjzondervan Nov 16, 2026
5db471a
fix(contexts): accept a node listed twice in an update or scheme import
rjzondervan Nov 16, 2026
f0d7188
Merge branch 'feat/3094/1-technical-names' into feat/3094/2-row-route…
rjzondervan Nov 16, 2026
9c7e067
fix(rows): do not resolve a slug to a node that is neither table nor …
rjzondervan Nov 16, 2026
3de65d2
fix(rows): check the user's permission on the slug routes before any …
rjzondervan Nov 16, 2026
ea7b952
perf(contexts): resolve an application slug by id only
rjzondervan Nov 16, 2026
75f227a
docs(rows): state the slug rule in the slug route parameters
rjzondervan Nov 16, 2026
cc582e0
docs(rows): describe the rows a federated node returns by slug
rjzondervan Nov 16, 2026
36dd547
ci: downgrade phpstan for green rector ci
blizzz Nov 16, 2026
771f426
ci: update workflows from templates
blizzz Nov 16, 2026
f7861fa
Merge pull request #3292 from nextcloud/ci/noid/rector
blizzz Nov 16, 2026
fa685a1
Merge pull request #3293 from nextcloud/ci/noid/update-workflows
blizzz Nov 16, 2026
11a4ebe
fix(sharing): remove federated share when sending to remote fails
benjaminfrueh Nov 16, 2026
ae4e109
fix(api): document accepted share and context parameter values
benjaminfrueh Nov 16, 2026
de289b1
fix(l10n): Update translations from Transifex
nextcloud-bot Nov 17, 2026
72c5524
Merge pull request #3295 from nextcloud/fix/3289/openapi-share-contex…
enjeck Nov 17, 2026
cad1b9b
Merge pull request #3294 from nextcloud/fix/3289/remove-failed-federa…
enjeck Nov 17, 2026
e5d2311
fix(deps): Fix npm audit
nextcloud-command Nov 15, 2026
04647a5
fix(tests): Update toast success selectors for consistency
enjeck Nov 17, 2026
c459f3a
Merge pull request #3284 from nextcloud/automated/noid/main-fix-npm-a…
enjeck Nov 17, 2026
60a03f7
chore(deps): update dependency psalm/phar to v7
renovate[bot] Nov 17, 2026
2e6755a
fix: update method signature for getViews and improve return type han…
enjeck Nov 17, 2026
c15cf26
Merge pull request #3278 from nextcloud/renovate/main-psalm-phar-7.x
github-actions[bot] Nov 17, 2026
db14e8e
test(rows): run the slug row routes as a read-only application member
rjzondervan Nov 17, 2026
ddc8900
Merge remote-tracking branch 'origin/main' into feat/3094/1-technical…
rjzondervan Nov 17, 2026
8933457
Merge branch 'feat/3094/1-technical-names' into feat/3094/2-row-route…
rjzondervan Nov 17, 2026
58a0616
fix(contexts): keep the order of added nodes and the last entry of a …
rjzondervan Nov 17, 2026
f013aa7
fix(contexts): let the scheme import in the UI carry the application …
rjzondervan Nov 17, 2026
05ae2ad
fix(contexts): preview the application slug the scheme import will take
rjzondervan Nov 17, 2026
7e13604
Merge branch 'feat/3094/1-technical-names' into feat/3094/2-row-route…
rjzondervan Nov 17, 2026
a565b57
test(contexts): pin the group and sender clauses of the slug lookup
rjzondervan Nov 17, 2026
00e3093
test(rows): check that refused slug writes leave the row alone
rjzondervan Nov 17, 2026
7652282
docs(rows): describe the row a federated node returns on slug writes
rjzondervan Nov 17, 2026
b4d046c
test(rows): tell rows apart when fetching by slug, and name the mappe…
rjzondervan Nov 17, 2026
dfa43d6
docs(rows): type the shared row helpers for federated rows too
rjzondervan Nov 17, 2026
9f68e21
fix(contexts): place a node the scheme lists twice at its last entry
rjzondervan Nov 17, 2026
53d6c40
test(rows): fetch the second row by slug, so the assertion can tell r…
rjzondervan Nov 17, 2026
4046179
Merge branch 'feat/3094/1-technical-names' into feat/3094/2-row-route…
rjzondervan Nov 17, 2026
af02ebb
test(contexts): give the mocked pages of the slug tests an id
rjzondervan Nov 19, 2026
fc36c72
feat(contexts): make slugs immutable
rjzondervan Nov 19, 2026
e786766
Merge branch 'feat/3094/1-technical-names' into feat/3094/2-row-route…
rjzondervan Nov 20, 2026
8b10922
revert(rows): drop the row uuid of #3253 for #3229
rjzondervan Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ai-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ jobs:

- name: Label PR as AI assisted
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
# Fork-triggered runs only get a read-only token, so labelling fails with HTTP 403.
# The label is informational; the checks below must still decide the job result.
continue-on-error: true
env:
# Fall back to the default token when the PAT is unavailable
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,34 @@ jobs:
expression: "//info//dependencies//nextcloud/@min-version"

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
uses: nextcloud-libraries/parse-package-engines-action@39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92 # v0.2.0
id: versions
# Continue if no package.json
continue-on-error: true
with:
path: ${{ env.APP_NAME }}
fallbackNode: '^24'
fallbackNpm: '^11.3'
path: ${{ env.APP_NAME }}/package.json

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
- name: Set up node ${{ steps.versions.outputs.node-version }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
if: ${{ steps.versions.outcome == 'success' }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
node-version: ${{ steps.versions.outputs.node-version }}
package-manager-cache: false

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
- name: Set up npm ${{ steps.versions.outputs.package-manager-version }}
# Skip if no package.json
if: ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
if: ${{ steps.versions.outcome == 'success' }}
run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'

- name: Get php version
id: php-versions
uses: icewind1991/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
uses: nextcloud-libraries/nextcloud-version-matrix@71959de73c244b11ecbf4503b87c41d65b0f64ae # v1.3.4
with:
filename: ${{ env.APP_NAME }}/appinfo/info.xml

- name: Set up php ${{ steps.php-versions.outputs.php-min }}
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: ${{ steps.php-versions.outputs.php-min }}
coverage: none
Expand All @@ -103,13 +101,15 @@ jobs:

- name: Install composer dependencies
if: steps.check_composer.outputs.files_exists == 'true'
run: |
cd ${{ env.APP_NAME }}
composer install --no-dev
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: '--no-dev'
working-directory: ${{ env.APP_NAME }}
ignore-cache: 'yes'

- name: Build ${{ env.APP_NAME }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
if: ${{ steps.versions.outcome == 'success' }}
env:
CYPRESS_INSTALL_BINARY: 0
run: |
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
overwrite: true

- name: Upload app to Nextcloud appstore
uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1.0.3
uses: nextcloud-libraries/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1.0.3
with:
app_name: ${{ env.APP_NAME }}
appstore_token: ${{ secrets.APPSTORE_TOKEN }}
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/lint-eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,16 @@ jobs:
persist-credentials: false

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
uses: nextcloud-libraries/parse-package-engines-action@39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92 # v0.2.0
id: versions
with:
fallbackNode: '^24'
fallbackNpm: '^11.3'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Set up node ${{ steps.versions.outputs.node-version }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
node-version: ${{ steps.versions.outputs.node-version }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
- name: Set up npm ${{ steps.versions.outputs.package-manager-version }}
run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'

- name: Install dependencies
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/lint-php-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:

- name: Get php version
id: versions
uses: icewind1991/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
uses: nextcloud-libraries/nextcloud-version-matrix@71959de73c244b11ecbf4503b87c41d65b0f64ae # v1.3.4

- name: Set up php${{ steps.versions.outputs.php-min }}
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: ${{ steps.versions.outputs.php-min }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
Expand All @@ -43,10 +43,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
- name: Remove nextcloud/ocp
run: |
composer remove nextcloud/ocp --dev --no-scripts
composer i

- name: Install composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0

- name: Lint
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
4 changes: 2 additions & 2 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Get version matrix
id: versions
uses: icewind1991/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
uses: nextcloud-libraries/nextcloud-version-matrix@71959de73c244b11ecbf4503b87c41d65b0f64ae # v1.3.4

php-lint:
runs-on: ubuntu-latest-low
Expand All @@ -49,7 +49,7 @@ jobs:
persist-credentials: false

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: ${{ matrix.php-versions }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/lint-stylelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ jobs:
persist-credentials: false

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
uses: nextcloud-libraries/parse-package-engines-action@39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92 # v0.2.0
id: versions
with:
fallbackNode: '^24'
fallbackNpm: '^11.3'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Set up node ${{ steps.versions.outputs.node-version }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
node-version: ${{ steps.versions.outputs.node-version }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
- name: Set up npm ${{ steps.versions.outputs.package-manager-version }}
run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'

- name: Install dependencies
env:
Expand Down
78 changes: 63 additions & 15 deletions .github/workflows/npm-audit-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ name: Npm audit fix and compile
on:
workflow_dispatch:
schedule:
# At 2:30 on Sundays
- cron: '30 2 * * 0'
# At 22:30 on Saturdays
- cron: '30 22 * * 6'

permissions:
contents: read
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest

env:
# env variable for maintainers: 'false' disables auto-merge for these pull requests
AUTOMERGE: true

strategy:
fail-fast: false
matrix:
Expand All @@ -39,36 +44,63 @@ jobs:
ref: ${{ matrix.branches }}
continue-on-error: true

- name: Check for active merge freeze
id: freeze
if: steps.checkout.outcome == 'success'
env:
BRANCH_NAME: ${{ matrix.branches }}
run: |
if [[ ! -f .github/workflows/block-merge-freeze.yml ]]; then
echo 'No block-merge-freeze workflow, continuing'
exit 0
fi
if [[ "$BRANCH_NAME" == 'main' || "$BRANCH_NAME" == 'master' ]]; then
SERVER_REF='master'
elif [[ "$BRANCH_NAME" =~ ^stable[0-9]+$ ]]; then
SERVER_REF="$BRANCH_NAME"
else
echo 'Not based on master/main/stable*, so skipping freeze check'
exit 0
fi
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output version.php
if grep 'OC_VersionString' version.php | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
echo "Merge freeze is active for $SERVER_REF, skipping"
echo 'active=true' >> $GITHUB_OUTPUT
fi
rm version.php

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
if: steps.freeze.outputs.active != 'true'
uses: nextcloud-libraries/parse-package-engines-action@39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92 # v0.2.0
id: versions
with:
fallbackNode: '^24'
fallbackNpm: '^11.3'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Set up node ${{ steps.versions.outputs.node-version }}
if: steps.freeze.outputs.active != 'true'
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
node-version: ${{ steps.versions.outputs.node-version }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
- name: Set up npm ${{ steps.versions.outputs.package-manager-version }}
if: steps.freeze.outputs.active != 'true'
run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'

- name: Fix npm audit
id: npm-audit
if: steps.freeze.outputs.active != 'true'
uses: nextcloud-libraries/npm-audit-action@1b1728b2b4a7a78d69de65608efcf4db0e3e42d0 # v0.2.0

- name: Run npm ci and npm run build
if: steps.checkout.outcome == 'success'
if: steps.freeze.outputs.active != 'true' && steps.checkout.outcome == 'success'
env:
CYPRESS_INSTALL_BINARY: 0
run: |
npm ci
npm run build --if-present

- name: Create Pull Request
if: steps.checkout.outcome == 'success'
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
id: create-pull-request
if: steps.freeze.outputs.active != 'true' && steps.checkout.outcome == 'success'
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: 'fix(deps): Fix npm audit'
Expand All @@ -81,3 +113,19 @@ jobs:
labels: |
dependencies
3. to review

# Approve using the default GITHUB_TOKEN, as the PR itself was created
# using COMMAND_BOT_PAT and GitHub does not allow an account to approve its own PR
- name: GitHub actions bot approve
if: steps.freeze.outputs.active != 'true' && steps.create-pull-request.outputs.pull-request-operation != 'none'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ steps.create-pull-request.outputs.pull-request-url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enable auto merge
if: steps.freeze.outputs.active != 'true' && steps.create-pull-request.outputs.pull-request-operation != 'none' && fromJSON(env.AUTOMERGE)
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.create-pull-request.outputs.pull-request-number }}
15 changes: 6 additions & 9 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,16 @@ jobs:
persist-credentials: false

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
uses: nextcloud-libraries/parse-package-engines-action@39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92 # v0.2.0
id: versions
with:
fallbackNode: '^24'
fallbackNpm: '^11.3'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Set up node ${{ steps.versions.outputs.node-version }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
node-version: ${{ steps.versions.outputs.node-version }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
- name: Set up npm ${{ steps.versions.outputs.package-manager-version }}
run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'

- name: Validate package-lock.json # See https://github.com/npm/cli/issues/4460
run: |
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:

- name: Get php version
id: php_versions
uses: icewind1991/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
uses: nextcloud-libraries/nextcloud-version-matrix@71959de73c244b11ecbf4503b87c41d65b0f64ae # v1.3.4

- name: Set up php
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: ${{ steps.php_versions.outputs.php-available }}
extensions: xml
Expand All @@ -52,34 +52,31 @@ jobs:

- name: Read package.json node and npm engines version
if: steps.check_typescript_openapi.outputs.files_exists == 'true'
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
uses: nextcloud-libraries/parse-package-engines-action@39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92 # v0.2.0
id: node_versions
# Continue if no package.json
continue-on-error: true
with:
fallbackNode: '^24'
fallbackNpm: '^11.3'

- name: Set up node ${{ steps.node_versions.outputs.nodeVersion }}
if: ${{ steps.node_versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Set up node ${{ steps.node_versions.outputs.node-version }}
if: ${{ steps.node_versions.outcome == 'success' }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ steps.node_versions.outputs.nodeVersion }}
node-version: ${{ steps.node_versions.outputs.node-version }}

- name: Set up npm ${{ steps.node_versions.outputs.npmVersion }}
if: ${{ steps.node_versions.outputs.nodeVersion }}
run: npm i -g 'npm@${{ steps.node_versions.outputs.npmVersion }}'
- name: Set up npm ${{ steps.node_versions.outputs.package-manager-version }}
if: ${{ steps.node_versions.outcome == 'success' }}
run: npm i -g 'npm@${{ steps.node_versions.outputs.package-manager-version }}'

- name: Install dependencies
if: ${{ steps.node_versions.outputs.nodeVersion }}
if: ${{ steps.node_versions.outcome == 'success' }}
env:
CYPRESS_INSTALL_BINARY: 0
PUPPETEER_SKIP_DOWNLOAD: true
run: |
npm ci

- name: Set up dependencies
run: composer i
- name: Install composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0

- name: Regenerate OpenAPI
run: composer run openapi
Expand Down
Loading
Loading