Skip to content

added in genignore and readded hook types from speakeasy recommendation - #136

Closed
mstrivens wants to merge 1 commit into
mainfrom
sha-fix
Closed

added in genignore and readded hook types from speakeasy recommendation#136
mstrivens wants to merge 1 commit into
mainfrom
sha-fix

Conversation

@mstrivens

@mstrivens mstrivens commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

Summary by cubic

Exclude the Hooks file from code generation and restore hook types per Speakeasy guidance. Added lib/.genignore to ignore lib/stack_one/sdk_hooks/hooks.rb, and require_relative './types' in hooks.rb to load types and prevent generator overwrites.

Written for commit 0fb87b6. Summary will update automatically on new commits.

Copilot AI review requested due to automatic review settings December 10, 2025 13:12
@mstrivens
mstrivens requested a review from a team as a code owner December 10, 2025 13:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a .genignore file to prevent Speakeasy from regenerating the hooks.rb file and adds a require_relative './types' statement to import hook types in the hooks.rb file, likely following a Speakeasy recommendation to preserve custom hook type definitions.

Key Changes

  • Added lib/.genignore file to exclude hooks.rb from automatic code regeneration
  • Added require_relative './types' import statement to hooks.rb to load hook type definitions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/.genignore Creates a new genignore file to prevent regeneration of hooks.rb by Speakeasy
lib/stack_one/sdk_hooks/hooks.rb Adds import for types module to load hook type definitions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/.genignore
@@ -0,0 +1 @@
lib/stack_one/sdk_hooks/hooks.rb No newline at end of file

Copilot AI Dec 10, 2025

Copy link

Choose a reason for hiding this comment

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

The path in .genignore should be relative to the lib/ directory since this file is located at lib/.genignore. The current path lib/stack_one/sdk_hooks/hooks.rb appears to be an absolute path from the project root. Consider changing it to stack_one/sdk_hooks/hooks.rb if this file is intended to ignore generation for the hooks.rb file within the lib directory.

Suggested change
lib/stack_one/sdk_hooks/hooks.rb
stack_one/sdk_hooks/hooks.rb

Copilot uses AI. Check for mistakes.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 2 files

@mstrivens mstrivens closed this Dec 10, 2025
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