Skip to content

How can we fetch UserInfo in ArgoCD notifications templates. #10294

Answered by pasha-codefresh
Coder63 asked this question in Q&A
Discussion options

You must be logged in to vote

https://argocd-notifications.readthedocs.io/en/stable/templates/#functions

apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-notifications-cm
data:
  template.my-custom-template-slack-template: |
    message: "Author: {{(call .repo.GetCommitMetadata .app.status.sync.revision).Author}}"

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Coder63
Comment options

You must be logged in to vote
1 reply
@Coder63
Comment options

Comment options

You must be logged in to vote
1 reply
@im-sa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants