Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Coding-Dev-Tools/configdrift
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: Coding-Dev-Tools/configdrift
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pr-45
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 12 files changed
  • 1 contributor

Commits on Aug 10, 2026

  1. style: apply ruff format to source and test files

    Formats 8 files per ruff's line-length=120 configuration:
    - src/configdrift/cli.py, diff.py, loader.py
    - tests/test_ci_workflow.py, test_cli.py, test_coverage_gaps.py,
      test_diff.py, test_loader.py
    
    Net reduction of 83 lines by consolidating multi-line expressions
    that fit within the 120-char limit. All 143 tests pass.
    Coding-Dev-Tools committed Aug 10, 2026
    Configuration menu
    Copy the full SHA
    0537412 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2026

  1. fix(ci): SHA-pin checkout in auto-pr workflow + add empty-term guard …

    …tests
    
    - SHA-pin actions/checkout@v4 to 11d5960 (v4) in cowork-auto-pr.yml
    - Add 5 regression tests for _key_contains_critical_term empty-term
      guard (diff.py:74-75), covering empty-only, mixed, and valid tuples
    - 148 tests pass, ruff clean on source/test files
    Coding-Dev-Tools committed Aug 15, 2026
    Configuration menu
    Copy the full SHA
    c879727 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2026

  1. feat(cli): add command to apply baseline values to drifted target con…

    …figs
    
    Implements the missing  command referenced in the project description
    ('detects and fixes configuration file drift'). Given a baseline and target
    config file, overwrites drifted keys in the target with baseline values.
    
    - Supports JSON, YAML, TOML (with optional tomli-w), and flat-key write-back
    - Preserves target-only keys (does not delete them)
    - Adds missing baseline keys to target
    - --dry-run/-n flag to preview without modifying files
    - 8 new tests covering JSON/YAML/TOML round-trips, dry-run, edge cases
    - All 155 existing tests continue to pass
    Coding-Dev-Tools committed Aug 16, 2026
    Configuration menu
    Copy the full SHA
    2ed1ff5 View commit details
    Browse the repository at this point in the history
  2. cowork-bot: atomic file writes for fix command (prevent config corrup…

    …tion on crash)
    
    Add _atomic.py module with tempfile+fsync+os.replace pattern for safe writes. Replace all direct file writes in the fix command (JSON/YAML/TOML) with atomic helpers that serialize to buffer first, then write to temp file and atomically rename. Original config files are now preserved intact if the process crashes mid-write (disk full, SIGTERM, power loss). 7 new tests verify the atomic-write contract including failure-mode preservation.
    Coding-Dev-Tools committed Aug 16, 2026
    Configuration menu
    Copy the full SHA
    f25e946 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2026

  1. fix: address 6 review issues in cli.py and _atomic.py

    - Preserve nested JSON structure during fix (rebuild from flat keys)
    - Handle .env targets in fix command (write flat KEY=VALUE format)
    - Process every supplied target file (iterate files[1:], not just files[1])
    - Skip write-back when no changes detected (check changes==0)
    - Replace scalar parents before rebuilding nested data (scalar-to-mapping drift)
    - Preserve target permissions during atomic replacement (copy mode from original)
    Coding-Dev-Tools committed Aug 18, 2026
    Configuration menu
    Copy the full SHA
    74fcdf6 View commit details
    Browse the repository at this point in the history
Loading