Skip to content

Add Support for Commenting on PR with Affected Stacks #282

Description

Describe the Feature

Atmos should support native GitHub integration to comment on a PR (or issue) with a markdown formatted comment of the affected stacks.

It should support creating or updating an existing comment based on a regex pattern (so it's stateless).

The markdown template should be a property of the atmos.yaml so it can be customized.

It should probably be a feature flag of atmos describe affected, so the affected stacks do not need to be recomputed. In other words, we still need the JSON output to work with other github actions.

Expected Behavior

atmos describe affected --output json --github-issue-id 123

The above command would output the affected stacks as JSON and comment on the GitHub Issue #123 with a markdown formatted comment. The repo and github org would default to what is in the .github/config file of the current working repository.

Use Case

  • GitOps with GitHub Actions or general CI/CD would be easier to implement since comments would be posted
  • Spacelift Rego policies can parse GitHub comments and only plan affected stacks

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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