Repository navigation
api | web | docs: accept watch paths when creating a service - #25
Merged
Merged
Conversation
create-service had no watch_paths field, so a monorepo service had to be created and then updated before its first push, or it would deploy on every push in between. - The create input now takes watch_paths, cleaned the same way as on update. Non-GitHub services that send it are refused. - The undeployed git panel shows a Watch Paths field under Advanced Settings, so the patterns are saved before the first deploy. - The docs cover setting watch paths before the first deploy and over the API or MCP. Fixes UNB-411.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
create-servicehad nowatch_pathsfield. The API returned a 422 and the MCP tool didn't offer it, whileupdate-servicealready accepted it. So a monorepo service had to be created and then updated before its first push. Otherwise it deployed on every push to the repo in between.CreateServiceInputtakeswatch_paths. The patterns are cleaned the same way as on update: trimmed, deduped and length-checked. Only GitHub services accept them; any other service type that sends them gets an invalid-input error. The OpenAPI spec and the generated web client are regenerated.watch_pathsover the API or MCP.Fixes UNB-411.
Testing
Adds
TestCleanCreateWatchPaths, which covers: