Format code and add CI workflow#21
Merged
Merged
Conversation
Run cargo fmt --all across the workspace so the upcoming CI format check starts clean instead of failing on pre-existing drift. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FHY7jJsZpnLW8WQdcZgBg
Adds .github/workflows/ci.yaml running cargo fmt/clippy/build/test on pull requests and pushes to main, giving pre-merge validation that the existing cd.yaml deployment workflow doesn't provide. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FHY7jJsZpnLW8WQdcZgBg
Drop the branches: main filter from pull_request and push triggers so feature branches get build/lint/test feedback on every push. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FHY7jJsZpnLW8WQdcZgBg
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.
Summary
This PR applies code formatting improvements across the codebase and introduces a CI workflow for automated testing and linting.
Key Changes
Code Formatting: Applied consistent formatting throughout the codebase, including:
CI Workflow: Added
.github/workflows/ci.yamlwith:cargo fmtandclippychecksFiles Modified
crates/sb-discord-bot/src/poise_impl/slash_commands.rs: Extensive formatting improvementscrates/sb-discord-bot/src/poise_impl/helpers.rs: Import reorderingcrates/sb-discord-bot/src/store/curated.rs: Struct initialization formattingcrates/sb-discord-bot/src/store/valid_cache.rs: Method chain formattingcrates/migration/src/m20260411_000000_add_votd_to_server_prefs.rs: Column definition formatting.github/workflows/ci.yaml: New CI workflow fileNotable Details
--lockedflag to ensure reproducible buildshttps://claude.ai/code/session_013FHY7jJsZpnLW8WQdcZgBg