Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

feat: add revision as git generator variable #479

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/generators/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ func (g *GitGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.Applic
return nil, err
}

// Add revision as a variable.
res = append(res, map[string]string{"revision": appSetGenerator.Git.Revision})

return res, nil
}

Expand Down