Skip to content

feat(get-changed-files): support push events via before/after SHAs#797

Merged
danadajian merged 5 commits into
mainfrom
feat/push-event-changed-files
Jun 22, 2026
Merged

feat(get-changed-files): support push events via before/after SHAs#797
danadajian merged 5 commits into
mainfrom
feat/push-event-changed-files

Conversation

@danadajian

Copy link
Copy Markdown
Contributor

Summary

  • The get-changed-files helper previously only worked on pull_request and merge_group events. It now also supports push events by diffing the before and after SHAs from the push payload.
  • Changed files are gathered by paginating through all commits in the push range and fetching each commit's files in parallel, then deduplicating by filename (last status wins). This avoids the 300-file cap on the compare endpoint's file list.
  • The file processing logic (handling renamed files and the ignore_deleted flag) was extracted into a shared helper to eliminate duplication between the PR and push paths.
  • Unit tests cover the push path: single commit, multiple commits, commit pagination, ignore_deleted, pattern filtering, and cross-commit deduplication.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@danadajian
danadajian requested a review from a team as a code owner June 22, 2026 13:45
@danadajian
danadajian merged commit a3d0dbe into main Jun 22, 2026
4 checks passed
@danadajian
danadajian deleted the feat/push-event-changed-files branch June 22, 2026 14:16
@eg-oss-ci

Copy link
Copy Markdown

🎉 This PR is included in version 1.90.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants