Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Git Triggers #811

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Git Triggers #811

wants to merge 1 commit into from

Conversation

lourens-octopus
Copy link
Contributor

[sc-85541]

Add Git Triggers

@lourens-octopus lourens-octopus force-pushed the lourens/add-git-triggers branch from 5f1bbe6 to eae99da Compare November 12, 2024 02:02
@lourens-octopus lourens-octopus force-pushed the lourens/add-git-triggers branch from eae99da to 7990610 Compare November 12, 2024 02:07
@lourens-octopus lourens-octopus requested a review from a team November 12, 2024 02:27
Copy link

@geofflamrock geofflamrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes themselves look good, I've left a few small thoughts and questions.

channel_id = "Channels-1"
sources {
deployment_action_slug = "deploy-action-slug"
git_dependency_name = ""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 the formatting ended up a bit wonky here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right I think its coming from the example file

sources {
deployment_action_slug = "deploy-action-slug"
git_dependency_name = ""
include_file_paths = ["include/me", "include/me/too"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These support glob patterns, including single directory * and multi-directory **, might be good to include some examples of those in here.

### Optional

- `is_disabled` (Boolean) Disables the trigger from being run when set.
- `sources` (Block List) List of Git trigger sources. Contains details of the deployment action slug, the git dependency and what file paths to monitor. (see [below for nested schema](#nestedblock--sources))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are Git trigger sources optional? What happens if you supply an empty list, do we allow that? I suppose it just doesn't do anything which might be ok.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any way to add tests around these resource functions to prove that things get serialized/deserialized correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants