Skip to content

Conversation

@JAORMX
Copy link
Collaborator

@JAORMX JAORMX commented Nov 27, 2025

Summary

  • Fixed the --diff-filter syntax from --diff-filter A to --diff-filter=A in the proposal naming validation workflow
  • Without the equals sign, git could misinterpret A as a path argument instead of the "Added files only" filter
  • This caused the validation to incorrectly fail when updating existing proposal files

Test plan

  • Verify CI passes on this PR
  • Test by creating a PR that modifies an existing proposal file (e.g., THV-0597-otel-integration-proposal.md) - validation should pass
  • Test by creating a PR that adds a new proposal file with incorrect naming - validation should fail

🤖 Generated with Claude Code

The --diff-filter option was missing the equals sign, which could cause
git to misinterpret 'A' as a path argument instead of the filter value.
This resulted in the validation failing even when only updating existing
proposal files.

Changes:
- Fix --diff-filter syntax from '--diff-filter A' to '--diff-filter=A'
- Add '|| true' to grep to handle cases with no matching files
- Update comments to clarify the intent

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Nov 27, 2025
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.45%. Comparing base (b97646b) to head (5f24ce6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2788      +/-   ##
==========================================
- Coverage   56.45%   56.45%   -0.01%     
==========================================
  Files         319      319              
  Lines       30878    30878              
==========================================
- Hits        17433    17431       -2     
- Misses      11946    11948       +2     
  Partials     1499     1499              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JAORMX JAORMX merged commit 2b448fe into main Nov 27, 2025
30 checks passed
@JAORMX JAORMX deleted the fix/proposal-naming-validation-for-updates branch November 27, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants