feat(engine): add commit iteration support for pull request evaluation#6372
feat(engine): add commit iteration support for pull request evaluation#6372sachin9058 wants to merge 2 commits into
Conversation
|
Note: Observed a data race in TestNatsChannel related to NATS JetStream internals. This appears to be upstream and unrelated to the changes in this PR. |
|
@evankanderson This PR is intentionally scoped as a foundational step toward commit-level evaluation. It introduces commit iteration support across pull requests while keeping the existing behavior unchanged. This allows future enhancements such as commit-level policy checks (e.g., content, message format, metadata) to build on top of this without expanding the scope of this PR. |
|
This PR needs additional information before we can continue. It is now marked as stale because it has been open for 30 days with no activity. Please provide the necessary details to continue or it will be closed in 30 days. |
Summary
This PR introduces basic support for iterating over all commits in a pull request during evaluation.
Currently, Minder evaluates only the final (HEAD) state of a pull request. This change lays the groundwork for future commit-level policies by exposing commit data such as SHA and message across all commits in the PR.
The implementation:
This change is intentionally scoped to be foundational and does not introduce any policy enforcement yet.
Fixes #2176
Testing
go test ./...