mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-23 07:00:49 +08:00
actions/labeler adds every scope whose globs match any changed file, so a PR touching a test, a param file and a board config collects a pile of scope labels (2.6 per PR on average over the last 300, up to 20) and nobody reads them. A scope label is only useful when it names the core of the PR. The title's conventional-commit scope already states that core, so the scope label now comes from it, resolved to an area of the tree; the diff decides only when the title names nothing. Each file belongs to one scope, and labels this workflow added earlier are removed when they stop matching. scope:testing, scope:uorb, scope:middleware and scope:logging are no longer applied. Assisted-by: Claude:claude-opus-5-5
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
# Labeler configuration file for GitHub Actions
|
|
# The action is ./.github/workflows/label.yml
|
|
# Docs for the syntax in this file can be found at
|
|
# https://github.com/actions/labeler
|
|
#
|
|
# Scope labels are not set here: Tools/ci/label_pr_scope.py applies at most one.
|
|
|
|
"kind:test":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- integrationtests/**
|
|
- test/**
|
|
- test_data/**
|
|
- validation/**
|
|
- src/systemcmds/tests/**
|
|
- "**/*[Tt]est.*"
|
|
- "**/*_test.*"
|
|
- "**/test_*.*"
|
|
|
|
"risk:security":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- SECURITY.md
|
|
- src/drivers/stub_keystore/**
|
|
- src/drivers/sw_crypto/**
|
|
- src/lib/crypto/**
|
|
- Tools/log_encryption/**
|
|
- Tools/test_keys/**
|
|
|
|
"vehicle:airship":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/airship_att_control/**
|
|
- docs/**/frames_airship/**
|
|
|
|
"vehicle:copter":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/mc_*/**
|
|
- docs/**/frames_multicopter/**
|
|
- docs/**/complete_vehicles_mc/**
|
|
|
|
"vehicle:fixed-wing":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/fw_*/**
|
|
- docs/**/frames_plane/**
|
|
- docs/**/flying/fixed_wing*
|
|
|
|
"vehicle:rover":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/rover_*/**
|
|
- docs/**/frames_rover/**
|
|
|
|
"vehicle:spacecraft":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/spacecraft/**
|
|
|
|
"vehicle:uuv":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/uuv_*/**
|
|
- docs/**/frames_sub/**
|
|
|
|
"vehicle:vtol":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- src/modules/vtol_att_control/**
|
|
- docs/**/frames_vtol/**
|