Skip to content

Conversation

@olblak
Copy link
Member

@olblak olblak commented Dec 11, 2025

Add an option for updatecli apply and updatecli compose apply to only update existing a pipeline.
If a pipeline doesn't have a working branch published on the remote git repository then it skipped the target.

The purpose is to allow more advance scenario where we don't want to suggest new update until we finished processing existing ones.

Test

Need to be tested manually

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

@olblak olblak requested a review from Copilot December 11, 2025 18:08
@olblak olblak added enhancement New feature or request scm-github SCM of type GiHhub scm-git SCM of kind "Git" scm-gittea scm-gitlab scm-stash scm-bitbucket All things related to the bitbucket integration labels Dec 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an --existing-only parameter to the updatecli apply and updatecli compose apply commands to enable skipping targets when a pipeline doesn't have an existing remote branch. This allows for advanced scenarios where new updates should not be suggested until existing ones are processed.

Key changes:

  • Added ExistingOnly field to target Options struct with documentation
  • Implemented logic to skip publishing when remote branch doesn't exist and --existing-only is enabled
  • Added --existing-only CLI flag to both apply and compose apply commands

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
pkg/core/pipeline/target/options.go Added ExistingOnly field to Options struct with documentation for all fields
pkg/core/pipeline/target/main.go Implemented logic to detect new pipelines and skip publishing when ExistingOnly is enabled
cmd/compose_apply.go Added --existing-only flag definition and wired it to the options
cmd/apply.go Added --existing-only flag definition (but missing the wiring to options)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Olblak <me@olblak.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Olblak <me@olblak.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@olblak olblak enabled auto-merge (squash) December 22, 2025 13:56
@olblak olblak merged commit 6eb96f9 into updatecli:main Dec 22, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request scm-bitbucket All things related to the bitbucket integration scm-git SCM of kind "Git" scm-github SCM of type GiHhub scm-gitlab scm-gittea scm-stash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant