Skip to content

Conversation

@dbieber
Copy link
Owner

@dbieber dbieber commented Apr 15, 2025

Summary

  • Extracted large script blocks from build.yml into separate script files for better maintainability
  • Created .github/scripts/ directory to house the extracted scripts
  • Preserved all current functionality while making the workflow easier to understand and maintain

Original Task

Have a look at .github/workflows/build.yml. Some parts of that should be moved into their own file separate from the yml file, preserving the current behavior. First, list which parts make sense to move out. Then, perform the refactor.

🤖 Generated with Claude Code

dbieber and others added 10 commits April 15, 2025 14:28
Move large script blocks from build.yml into separate script files:
- WiFi access point setup
- System boot configuration
- Python environment setup
- Geckodriver installation
- Bash history setup

This improves maintainability while preserving the current functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Move heredoc content from bash scripts into static template files:
- Extract configuration files from setup_wifi_ap.sh (dhcpcd.conf, dnsmasq.conf, etc.)
- Extract bash_history commands to a separate template
- Create .github/templates directory to organize these configuration files
- Update scripts to use the new templates

This improves maintainability and makes configuration files easier to edit.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Changes:
- Inline setup_python_env.sh back into build.yml
- Inline setup_bash_history.sh back into build.yml
- Remove the inlined script files
- Add trailing newlines to all template files
- Update README to reflect removed scripts

This keeps the more complex configuration scripts separate while
avoiding over-abstraction for simpler operations.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Added trailing newlines to:
- install_geckodriver.sh
- setup_boot.sh
- setup_wifi_ap.sh

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove all remaining trailing whitespace
- Reorder setup scripts to run setup_boot.sh after setup_wifi_ap.sh
- Add newline at end of file

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Use consistent project naming: "Go Note Go" instead of "GoNoteGo"
- Add trailing newline at end of file

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Use consistent project naming: "Go Note Go" instead of "GoNoteGo"
- Add trailing newline at end of file

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Use consistent project naming: "Go Note Go" instead of "GoNoteGo"

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Use consistent project naming: "Go Note Go" instead of "GoNoteGo"

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@dbieber dbieber merged commit c98b684 into main Apr 15, 2025
1 check passed
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