mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
ci(commit_checks): accept a backport tag in release branch PR titles
Backport PRs are titled "[BACKPORT 1.18] fix(mavlink): ...". The PR title check anchors on the conventional commit type, so it fails all of them even though the header after the tag is valid. Replaying the check over the 210 PRs opened against release/1.16, release/1.17 and release/1.18, 62 fail only because of the tag. Skip a leading backport tag before validating the header. The header after the tag still has to be a conventional commit. The tag is accepted only on PRs that target a release/* branch, so a backport opened against main by mistake fails with a comment that says so. The title suggested in the failure comment keeps the tag. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
1 parent
0b7837cccf
commit
40fee1673f
6 files changed
+134
-11
No files matched your search
@@ -54,6 +54,10 @@ jobs:
|
||||
python3 -m unittest discover -s ai_review -t . -v
|
||||
python3 -m unittest -v test_pr_review_poster
|
||||
|
||||
- name: Test PR title check
|
||||
working-directory: Tools/ci
|
||||
run: python3 -m unittest -v test_check_pr_title
|
||||
|
||||
- name: Check ROS workspace tooling
|
||||
run: |
|
||||
flake8 Tools/ros2/*.py
|
||||
|
||||
Reference in new issue
Block a user