Display revisions when generating a badge for a multi-source application #17986
Labels
bug
Something isn't working
component:api
API bugs and enhancements
multi-source-apps
Bugs or enhancements related to multi-source Applications.
Checklist:
argocd version
.Describe the bug
badge.go does not take into account multi-source applications when determining the revision to display on a badge. It only extracts the value from
app.Status.OperationState.SyncResult.Revision
, leavingapp.Status.OperationState.SyncResult.Revisions
behind.Example multi-source application object dumped via the API:
To Reproduce
Crate a multi-source application and generate a the badge passing
revision=true
. No revision is added.Expected behavior
Revisions from sources are added to the badge.
Screenshots
n/a
Version
v2.10.7
Logs
n/a
The text was updated successfully, but these errors were encountered: