nextcloud / nextcloud/updater

Add option "--no-major" to CLI updater

Open
#319 2 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: check for update UX🙂
Dominant language
PHP
Stars
51
Forks
40
Avg merge
2d 19h
Merged PRs (30d)
3

Description

Hi everybody,

I want to trigger nightly updates by cron job. However, these should be limited to security fixes, i.e. only the newest minor version should be updated. Therefore, I ask you to include a "--no-major" CLI option.

I think this also would enhance security, since security updates should be installed automatically. Currently, this is not possible without the "risk" of forcing an update to the next major version.

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PHP CLI option parsing and the updater's version-selection logic. Trace how major and minor updates are currently chosen, then verify that --no-major permits the newest minor or security update without selecting a newer major version.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.