Skip to content

Fix privacy-check failing on empty author range - #6

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/privacy-empty-range-ba49
Aug 26, 2026
Merged

Fix privacy-check failing on empty author range#6
cursor[bot] merged 1 commit into
mainfrom
cursor/privacy-empty-range-ba49

Conversation

@function1st

Copy link
Copy Markdown
Owner

Main CI has been red on every push: after fetching origin/main, HEAD --not origin/main is empty and privacy-check.py treated that as a personal-email failure (no commits to check).

  • Empty range is a pass
  • Skip a base ref that is HEAD itself (then use the merge first-parent when there is one)
  • Wire github.event.before so a main push still scans the new commits
  • Isolate the author self-test from CI’s GITHUB_BASE_REF so it actually rejects a personal email

This is why the job you linked failed after PR #5 merged.

Open in Web Open in Cursor 

Main push CI fetched origin/main, then HEAD --not origin/main was
empty and counted as a personal-email failure. Skip a base that is
HEAD, honor github.event.before, and do not fail when there is
nothing new to scan.

Co-authored-by: Bryan @ FnFirst <function1st@users.noreply.github.com>
@cursor
cursor Bot merged commit 3bfcc4f into main Aug 26, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/privacy-empty-range-ba49 branch August 26, 2026 18:48
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