Skip to content

Comment Argo CD app diff on pull-requests #50

Open
@maxbrunet

Description

@maxbrunet
  1. List of all applications that have changed, our application label can be leveraged: argocd app list --selector=application=<name>
  2. Get diff for each of them: argocd app diff <application-name> --hard-refresh --revision="${GITHUB_SHA}"
  3. Comment diff on pull-requests with actions/github-script (see also) (Be mindful diff may be too large for a GitHub comment)

If needed (our server is public), authentication should be performed with a project role JWT token (ARGOCD_AUTH_TOKEN), see:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions