Skip to content

Format code and add CI workflow#21

Merged
KallynGowdy merged 3 commits into
mainfrom
claude/ci-workflow-kl0dgs
Jul 6, 2026
Merged

Format code and add CI workflow#21
KallynGowdy merged 3 commits into
mainfrom
claude/ci-workflow-kl0dgs

Conversation

@KallynGowdy

Copy link
Copy Markdown
Contributor

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:

    • Reorganized imports in alphabetical order
    • Reformatted long lines and method chains for improved readability
    • Adjusted multi-line function calls and string formatting
    • Improved spacing in conditional expressions and match statements
  • CI Workflow: Added .github/workflows/ci.yaml with:

    • Lint job: Runs cargo fmt and clippy checks
    • Test job: Builds the workspace and runs tests
    • Runs on pull requests and pushes to main branch
    • Includes system dependency installation (pkg-config, libssl-dev, libsqlite3-dev)
    • Uses Rust caching for faster builds

Files Modified

  • crates/sb-discord-bot/src/poise_impl/slash_commands.rs: Extensive formatting improvements
  • crates/sb-discord-bot/src/poise_impl/helpers.rs: Import reordering
  • crates/sb-discord-bot/src/store/curated.rs: Struct initialization formatting
  • crates/sb-discord-bot/src/store/valid_cache.rs: Method chain formatting
  • crates/migration/src/m20260411_000000_add_votd_to_server_prefs.rs: Column definition formatting
  • .github/workflows/ci.yaml: New CI workflow file

Notable Details

  • All formatting changes maintain functional equivalence
  • CI workflow uses --locked flag to ensure reproducible builds
  • Concurrency settings prevent duplicate workflow runs on the same ref

https://claude.ai/code/session_013FHY7jJsZpnLW8WQdcZgBg

claude added 3 commits July 6, 2026 16:00
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
@KallynGowdy KallynGowdy merged commit 32910f4 into main Jul 6, 2026
4 checks 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