mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
feat(ci): add the AI PR review workflow
pr-ai-review.yml runs the review when someone with write access comments `!ai-review` on a PR (optionally with model= and effort=), or on manual dispatch. A gate job checks the commenter's repository permission through the API. The review job assumes an OIDC role that only this workflow on main can use, and pr-review-poster.yml posts the result as a COMMENT review, accepting this workflow's issue_comment and workflow_dispatch runs; its pull_request path is unchanged. python_checks.yml runs the new tests, mypy and flake8. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
1 parent
95e2802baf
commit
f92f17dbc8
3 files changed
+244
-3
No files matched your search
@@ -41,6 +41,14 @@ jobs:
|
||||
mypy --strict check_usb_ids.py usb_ids_runner.py test_check_usb_ids.py test_usb_ids_runner.py
|
||||
flake8 check_usb_ids.py usb_ids_runner.py test_check_usb_ids.py test_usb_ids_runner.py
|
||||
|
||||
- name: Check AI review tooling and the PR review poster
|
||||
working-directory: Tools/ci
|
||||
run: |
|
||||
mypy --strict -p ai_review
|
||||
flake8 ai_review test_pr_review_poster.py
|
||||
python3 -m unittest discover -s ai_review -t . -v
|
||||
python3 -m unittest -v test_pr_review_poster
|
||||
|
||||
- name: Check ROS workspace tooling
|
||||
run: |
|
||||
flake8 Tools/ros2/*.py
|
||||
|
||||
Reference in new issue
Block a user