fix: add /retest support for security checks#1123
Conversation
Security checks (security-committer-identity, security-suspicious-paths) were missing from the supported retest list and dispatch map, causing /retest to return "No ... configured for this repository". - Add security checks to _current_pull_request_supported_retest - Add security runners to run_retests dispatch map Closes #1122
Code Review by Qodo
Context used 1.
|
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
PR Summary by QodoFix /retest support for security checks Description
Diagram
High-Level Assessment
Files changed (2)
|
The lambda wrappers used `_pull_request` but the caller passes `pull_request=` as a keyword arg. Python matches kwargs by name, so this would TypeError at runtime. Switch to **_kwargs. Also add tests for security retest support list inclusion/exclusion.
|
Code review by qodo was updated up to the latest commit 64f7230 |
|
@qodo-code-review[bot] The following review comments were reviewed and a decision was made:
|
Change minimal_hook_data: dict to dict[str, Any] to comply with strict mypy disallow_any_generics setting.
|
Code review by qodo was updated up to the latest commit b0d7305 |
|
@qodo-code-review[bot] The following review comments were reviewed and a decision was made:
|
|
New container for ghcr.io/myk-org/github-webhook-server:latest published |
Problem
/retest security-committer-identityand/retest security-suspicious-pathsreturn "No ... configured for this repository" even when security checks are enabled and working.Root Cause
_current_pull_request_supported_retestdidn't include security check names, andrun_retestsdidn't have security check functions in its dispatch map.Fix
_current_pull_request_supported_retestwhen enabledrun_retestsdispatch map (with lambda wrappers since security methods don't takepull_requestparam)Closes #1122