Skip to content

[master] ci(actions): Update workflow templates from organization template repository#1049

Open
nextcloud-command wants to merge 2 commits into
masterfrom
automated/noid/master-update-workflows
Open

[master] ci(actions): Update workflow templates from organization template repository#1049
nextcloud-command wants to merge 2 commits into
masterfrom
automated/noid/master-update-workflows

Conversation

@nextcloud-command

Copy link
Copy Markdown
Contributor

Automated update of all workflow templates from nextcloud/.github

@nextcloud-command
nextcloud-command force-pushed the automated/noid/master-update-workflows branch from 7479914 to f753767 Compare July 19, 2026 05:40
@kesselb
kesselb force-pushed the automated/noid/master-update-workflows branch from 2659ab4 to 39a7d36 Compare July 20, 2026 20:21
nextcloud-command and others added 2 commits July 20, 2026 22:22
…ository

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb
kesselb force-pushed the automated/noid/master-update-workflows branch from 39a7d36 to 29f9cba Compare July 20, 2026 20:22
@kesselb
kesselb enabled auto-merge July 20, 2026 20:22
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

CI workflows now use ramsey/composer-install after separately removing nextcloud/ocp where applicable. Several GitHub Action lock identifiers and the PR feedback action reference were updated. The npm audit workflow matrix no longer includes stable34, stable33, or stable32, and lock entries were added for the npm audit and npm build workflows.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the workflow template update from the organization repository.
Description check ✅ Passed The description matches the changeset and lists the updated workflow templates.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4ae7aab3-5b03-4318-98f2-37d56947820e

📥 Commits

Reviewing files that changed from the base of the PR and between f2f4e69 and 29f9cba.

📒 Files selected for processing (11)
  • .github/actions-lock.txt
  • .github/workflows/lint-php-cs.yml
  • .github/workflows/npm-audit-fix.yml.patch
  • .github/workflows/phpunit-mariadb.yml
  • .github/workflows/phpunit-mysql.yml
  • .github/workflows/phpunit-oci.yml
  • .github/workflows/phpunit-pgsql.yml
  • .github/workflows/phpunit-sqlite.yml
  • .github/workflows/pr-feedback.yml
  • .github/workflows/psalm.yml
  • .github/workflows/update-nextcloud-ocp.yml

Comment on lines +132 to +142
- name: Remove nextcloud/ocp
# Only run if phpunit config file exists
if: steps.check_composer.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: |
composer remove nextcloud/ocp --dev --no-scripts
composer i

- name: Install composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
working-directory: apps/${{ env.APP_NAME }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Add missing condition to Install composer dependencies step.

By splitting the dependency setup into two separate steps, the Install composer dependencies step lost the condition that ensures composer.json exists. If composer.json is missing (which is a valid state for some apps), the ramsey/composer-install action will fail and break the CI run. Additionally, the comment copied from the PHPUnit step should be corrected.

  • .github/workflows/phpunit-mariadb.yml#L132-L142: Add the missing if condition and fix the comment.
  • .github/workflows/phpunit-mysql.yml#L130-L140: Add the missing if condition and fix the comment.
  • .github/workflows/phpunit-oci.yml#L137-L147: Add the missing if condition and fix the comment.
  • .github/workflows/phpunit-pgsql.yml#L128-L138: Add the missing if condition and fix the comment.
  • .github/workflows/phpunit-sqlite.yml#L117-L127: Add the missing if condition and fix the comment.
💻 Proposed fix
       - name: Remove nextcloud/ocp
-        # Only run if phpunit config file exists
+        # Only run if composer config file exists
         if: steps.check_composer.outputs.files_exists == 'true'
         working-directory: apps/${{ env.APP_NAME }}
         run: |
           composer remove nextcloud/ocp --dev --no-scripts
 
       - name: Install composer dependencies
+        if: steps.check_composer.outputs.files_exists == 'true'
         uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
         with:
           working-directory: apps/${{ env.APP_NAME }}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Remove nextcloud/ocp
# Only run if phpunit config file exists
if: steps.check_composer.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: |
composer remove nextcloud/ocp --dev --no-scripts
composer i
- name: Install composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
working-directory: apps/${{ env.APP_NAME }}
- name: Remove nextcloud/ocp
# Only run if composer config file exists
if: steps.check_composer.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: |
composer remove nextcloud/ocp --dev --no-scripts
- name: Install composer dependencies
if: steps.check_composer.outputs.files_exists == 'true'
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
working-directory: apps/${{ env.APP_NAME }}
📍 Affects 5 files
  • .github/workflows/phpunit-mariadb.yml#L132-L142 (this comment)
  • .github/workflows/phpunit-mysql.yml#L130-L140
  • .github/workflows/phpunit-oci.yml#L137-L147
  • .github/workflows/phpunit-pgsql.yml#L128-L138
  • .github/workflows/phpunit-sqlite.yml#L117-L127

@kesselb

kesselb commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

@coderabbitai help

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

CodeRabbit commands

These commands are invoked using PR/Issue comments.

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai rate limit to show your current review rate limit status.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai evaluate custom pre-merge check --instructions <custom-checks-instructions> --name <custom-checks-title> [--mode <error|warning>] to validate the custom pre-merge checks instructions. Defaults to error when --mode is omitted.
  • @coderabbitai ignore pre-merge checks to override pre-merge checks and get an approval on PR.
  • @coderabbitai run pre-merge checks to run pre-merge checks on the pull request.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai emit path instructions to emit generated path-specific review instructions for this repository.
  • @coderabbitai resolve merge conflict to automatically resolve merge conflicts.
  • @coderabbitai autofix to automatically fix issues identified in unresolved review comments.
  • @coderabbitai fix-ci to automatically fix failing CI checks by creating a stacked PR with fixes.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai generate configuration to create a PR that adds the current resolved configuration as .coderabbit.yaml (or show it if already present).
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit configuration file (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, support, documentation and community

  • Visit our status page to check the current availability of CodeRabbit.
  • Create a ticket on our support page for assistance with any issues or questions.
  • Visit our documentation site for detailed information on how to use CodeRabbit.
  • Join our Discord community to connect with other users and get help from the community.
  • Follow us on X/Twitter for updates and announcements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants