Skip to content

ArgoCD: Make RepositoryAdapter more generic so it can be reused in new git steps#1865

Open
rain-on wants to merge 9 commits intomainfrom
tmm/refactor_repo
Open

ArgoCD: Make RepositoryAdapter more generic so it can be reused in new git steps#1865
rain-on wants to merge 9 commits intomainfrom
tmm/refactor_repo

Conversation

@rain-on
Copy link
Copy Markdown
Contributor

@rain-on rain-on commented Apr 2, 2026

Currently the RepositoryAdapter takes argo-specific types, which makes it hard to reuse in the new commit-to-git step (which would be nice to reuse the existing git-commit type logic).

This PR removes the Argo specific aspects - but leaves other classes etc. in their existing location.

rain-on and others added 8 commits March 27, 2026 16:34
…teParser

Also fix dangling references in TransformAndCommitToGitCommand left by
the removed files: drop the stale CommitWorkspaceToGitRepositoryConvention
AddRange block and correct pathToPackage -> packageFile so the build is clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Connection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rain-on rain-on requested review from APErebus and flin-8 April 2, 2026 06:01
public delegate FileUpdateResult RepositoryMutator(string workingDir);

// New generic overload — used by CommitToGitConvention and (after Task 3) ArgoCD callers
public SourceUpdateResult Process(string repoUrl, string targetRevision, RepositoryMutator mutator)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe SourceUpdateResult needs to be renamed? It's not very generic atm

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What would you think about "RepositoryUpdates"?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants