-
Notifications
You must be signed in to change notification settings - Fork 13
update next from main #176
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
Merged
Conversation
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
Add support for pinning Hookdeck project configuration to the current directory using the --local flag. This enables per-repository project configuration for better developer experience in multi-project workflows. Implementation: - Added --local flag to 'project use' command - Implemented UseProjectLocal() method to create/update local config - Added smart default: auto-updates local config when it exists - Validates --local and --config are mutually exclusive - Displays security warning when creating local config - Refactored config writing to reduce code duplication Testing: - Created comprehensive acceptance test suite - Added helper functions for temp directory management - Tests validate flag behavior, config creation, and security warnings - 2 tests passing in CI, 4 tests ready for CLI key testing Documentation: - Updated README with complete --local flag documentation - Explained configuration file precedence (--config > local > global) - Added security guidance for credential management - Included examples for all use cases Related: Previous PRs #102, #103 that removed --local flag
Add semi-automated testing workflow for project use tests that require human browser-based authentication. These tests ensure the --local flag works correctly with CLI key authentication. Implementation: - Created project_use_manual_test.go with 4 manual tests (build tag: manual) - Added RequireCLIAuthentication() helper that forces fresh login - Helper clears existing auth, runs 'hookdeck login', waits for user - Existing automated tests remain in project_use_test.go (run in CI) - Manual tests only run with: go test -tags=manual Testing workflow: - Tests clear authentication and require fresh CLI login - User completes browser authentication when prompted - Tests verify local config creation with project selection - Validates security warnings and smart default behavior Documentation: - Updated test/acceptance/README.md with manual test instructions - Explained difference between automated (CI) and manual tests - Provided examples of running manual tests locally - Documented which tests require human authentication Feature implementation: - Added security warning output in project_use.go for new local configs - Fixed config writing logic in config.go to properly handle new files - Refactored project_use_test.go to separate automated vs manual tests - Updated test comments to clarify CI vs local execution requirements Related: Completes semi-automated testing for --local flag feature
- Add type display in brackets [TYPE] for connection list view - Add 'Type:' field to connection get detailed view - Update tests to verify type fields are displayed correctly
… get - Add support for passing connection name to 'connection get' command - Implement resolveConnectionID() to accept both ID and name - Improve 404 error handling with user-friendly messages - Add tests for name-based lookup and error cases - Update command usage and help text to reflect name support
… of hookdeck-beta
…k-cli into feat/local-flag
- Added destinationURL and destinationCliPath to hasAnyDestinationFlag() check - Added destinationURL and destinationCliPath to hasDestinationConfigOnly check - Added destinationURL and destinationCliPath to hasDestinationConfigUpdate check - Added destinationCliPath handling in buildDestinationInputForUpdate() - Added comprehensive test suite for partial updates (TestConnectionUpsertPartialUpdates) This fixes the 422 error when running: hookdeck connection upsert <name> --destination-url <URL> Previously, the CLI wasn't detecting that destination config flags were provided, so it didn't fetch the existing connection to preserve source/destination references. The API requires both source and destination in every PUT request, so the CLI now automatically handles this by fetching the existing connection and merging changes.
fix: connection upsert with only destination config flags now works
Project Use --local Flag & Connection Management Improvements
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.
A number of PRs have been merged directly into
main, but we need to change that. So we merge intonextfrom now on.