Commit graph

8 commits

Author SHA1 Message Date
raiden00pl
f851e09cab CI: fix labeler for common boards files
Fix labeler for common boards files.
Touching these files should trigger the building of all boards

Signed-off-by: raiden00pl <raiden00@railab.me>
2026-03-08 17:29:17 +01:00
p-szafonimateusz
1845cb05f1 CI: update labels for CI scripts
all targets should be build if CI-realted tools was changed

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2026-03-03 20:54:12 +08:00
Lup Yuen Lee
4e9ab20b6a github/workflow: Reimplement PR Labeling without pull_request_target
ASF Infrastructure Team has flagged a GitHub Actions workflow policy violation, inside our PR Labeling. We must remove pull_request_target before 6 Apr 2026, or ASF Infra will turn off all GitHub Builds: https://github.com/apache/nuttx/issues/18359

This PR reimplements the PR Labeling with two triggers: pull_request and workflow_run. We no longer need pull_request_target, which is an unsafe trigger and may introduce security vulnerabilities.

GitHub Actions `codelytv/pr-size-labeler` and `actions/labeler` don't work with the pull_request trigger, so we replaced them with our own code. The implementation is explained here: https://github.com/apache/nuttx/issues/18359

### Modified Files

`.github/workflows/labeler.yml`: Changed the (read-write) pull_request_target trigger to (read-only) pull_request trigger. Compute the Size Label (e.g. Size: XS) and Arch Labels (e.g. Arch: arm). Save the PR Labels into a PR Artifact.

`.github/labeler.yml`: Added comment to clarify that NuttX PR Labeler only supports a subset of the `actions/labeler` syntax: `changed-files` and `any-glob-to-any-file`

### New Files

`.github/workflows/pr_labeler.yml`: Contains the workflow_run trigger, which is executed upon completion of the pull_request trigger. Download the PR Labels from the PR Artifact. Write the PR Labels into the PR.

Signed-off-by: Lup Yuen Lee <luppy@appkaki.com>
2026-02-17 09:53:41 +01:00
raiden00pl
48a327d0ed .github/labeler.yml: add missing drivers label
add missing drivers label for labeler.yml
2024-11-03 20:54:39 +08:00
raiden00pl
cf64060a72 .github/labler.yml: fix confition condition for Area: Bluetooth
Signed-off-by: raiden00pl <raiden00@railab.me>
2024-10-16 08:01:49 +08:00
Lup Yuen Lee
1280ac845a CI: Label include/*.h and include/nuttx/*.h as "Area: OS Components"
This patch fixes the PR Labeler, such that PRs with modified files in `include/*.h` and `include/nuttx/*.h` are labeled as "Area: OS Components". Previously the PR Labeler ignores files like `include/nuttx/elf.h`, which causes Build Jobs to be skipped incorrectly.
2024-10-15 22:41:30 +08:00
Lup Yuen Lee
a38e533bfa CI: Set PR Label to the Arch-Specific Board
This PR changes the Labeling of PRs so that the Architecture (arm, risc-v, xtensa, ...) is specified in the Board Label. Previously the CI Workflow would set Generic Board Labels like "Area: Board support". Now it will set the Arch-Specific Board Label like "Board: arm".

The Board Label will be used by the upcoming CI Build Rules to skip unnecessary builds. So "Board: arm" will enable only the builds for `arm-01` to `arm-14`. This is explained here: https://github.com/apache/nuttx/issues/13775
2024-10-09 18:00:16 +08:00
raiden00pl
cafd563da1 github/workflows: add auto labeler for PR
this commit adds initial support for auto labeler for PR
based on https://github.com/actions/labeler
2024-09-20 10:02:18 -03:00