Remove empty network.go file#3569
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove or consolidate functionality in network.go
Remove empty network.go file
Nov 10, 2025
pelikhan
approved these changes
Nov 10, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request refactors network-related code by removing the monolithic pkg/workflow/network.go file and splitting its functionality into four more focused files. The documentation is updated to reflect this new code organization.
Key Changes
- Removed
pkg/workflow/network.goas part of a code organization refactoring - Updated documentation to reference the four new files that now handle network-related functionality
- Improved code organization by separating concerns into focused files (types, domain handling, hooks, firewall support)
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/workflow/network.go | Removed the monolithic network.go file as part of refactoring |
| .github/workflows/schema-consistency-checker.md | Updated documentation to reference the four new files that replace network.go: engine.go (types), domains.go (allowlist functions), engine_network_hooks.go (hook generation), and engine_firewall_support.go (firewall checking) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The file
pkg/workflow/network.gocontained only a package declaration with no functions or types. Network functionality already exists in dedicated files.Changes
pkg/workflow/network.go.github/workflows/schema-consistency-checker.mdto reference actual network implementation files:engine.go-NetworkPermissionstypedomains.go-GetAllowedDomainsfunctionengine_network_hooks.go- network hook generationengine_firewall_support.go- firewall supportResolves #3435
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.