Skip to content

ci: skip TODO format checks for CHANGELOG.md#1790

Merged
netrome merged 2 commits intomainfrom
1789-ci-todo-check-fails-on-changelogmd
Jan 16, 2026
Merged

ci: skip TODO format checks for CHANGELOG.md#1790
netrome merged 2 commits intomainfrom
1789-ci-todo-check-fails-on-changelogmd

Conversation

@pbeza
Copy link
Contributor

@pbeza pbeza commented Jan 16, 2026

Closes #1789

@pbeza pbeza linked an issue Jan 16, 2026 that may be closed by this pull request
@pbeza pbeza marked this pull request as ready for review January 16, 2026 16:13
@DSharifi DSharifi changed the title fix: skip TODO format checks for CHANGELOG.md ci: skip TODO format checks for CHANGELOG.md Jan 16, 2026
DSharifi
DSharifi previously approved these changes Jan 16, 2026
gilcu3
gilcu3 previously approved these changes Jan 16, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the TODO format checking script to exclude the auto-generated CHANGELOG.md file from TODO format validation, preventing false positives from historical commit messages that may contain TODO items in non-standard formats.

Changes:

  • Updated the filter logic in check-todo-format.sh to skip TODO format checks for CHANGELOG.md

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# Filter out the script itself and todo-format-check files from the results
SCRIPT_NAME=$(basename "$0")
INVALID_TODOS=$(echo "$INVALID_TODOS" | grep -v "$SCRIPT_NAME" | grep -v "todo-format-check.ya\?ml" || true)
INVALID_TODOS=$(echo "$INVALID_TODOS" | grep -v "$SCRIPT_NAME" | grep -vi "todo-format-check.ya\?ml" | grep -vi "changelog.md" || true)
Copy link

Copilot AI Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of the -i flag to grep -v "todo-format-check.ya\?ml" changes existing behavior by making the pattern case-insensitive. While this change may be harmless (no such files currently exist with different casing), it appears to be an unintended side effect of adding the changelog exclusion. Consider separating the grep commands to maintain the original case-sensitive behavior for the todo-format-check pattern while only using case-insensitive matching for the changelog pattern, or explicitly document this behavioral change if it's intentional.

Suggested change
INVALID_TODOS=$(echo "$INVALID_TODOS" | grep -v "$SCRIPT_NAME" | grep -vi "todo-format-check.ya\?ml" | grep -vi "changelog.md" || true)
INVALID_TODOS=$(echo "$INVALID_TODOS" | grep -v "$SCRIPT_NAME" | grep -v "todo-format-check.ya\?ml" | grep -vi "changelog.md" || true)

Copilot uses AI. Check for mistakes.
netrome
netrome previously approved these changes Jan 16, 2026
@pbeza pbeza dismissed stale reviews from netrome, gilcu3, and DSharifi via 46e2c39 January 16, 2026 16:21
@pbeza pbeza enabled auto-merge January 16, 2026 16:23
@netrome netrome disabled auto-merge January 16, 2026 16:25
@netrome netrome merged commit 56bf565 into main Jan 16, 2026
7 checks passed
@netrome netrome deleted the 1789-ci-todo-check-fails-on-changelogmd branch January 16, 2026 16:25
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.

CI TODO check fails on CHANGELOG.md

5 participants