-
Notifications
You must be signed in to change notification settings - Fork 67
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
base: main
Are you sure you want to change the base?
Add Git Triggers #811
Conversation
5f1bbe6
to
eae99da
Compare
eae99da
to
7990610
Compare
There was a problem hiding this 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 = "" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"] |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
[sc-85541]
Add Git Triggers