Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Path-based auto-labeling for USB IP / port drivers.
# Maps changed dcd/hcd files under src/portable/ to their "Port <ip>" label.
# Consumed by actions/labeler (see .github/workflows/labeler.yml -> label-port job).

"Port DWC2":

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the existing Synopsys DWC2 label

For PRs that touch src/portable/synopsys/dwc2/**, this config applies Port DWC2, but the repository's current label set already uses Port Synopsys DWC2. Since the workflow grants issues: write specifically to create missing labels, these PRs will get a new duplicate label instead of showing up under the existing DWC2 triage label and saved filters.

Useful? React with 👍 / 👎.

- changed-files:
- any-glob-to-any-file: 'src/portable/synopsys/dwc2/**'

"Port EHCI":
- changed-files:
- any-glob-to-any-file: 'src/portable/ehci/**'

"Port OHCI":
- changed-files:
- any-glob-to-any-file: 'src/portable/ohci/**'

"Port FSDev":

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the existing STM32 FSDev label

For PRs that touch src/portable/st/stm32_fsdev/**, this config applies Port FSDev, but the repository's existing label is Port STM32 FSDev. With label auto-creation enabled, STM32 FSDev changes will be split onto a duplicate label and will not appear in existing triage views for the current label.

Useful? React with 👍 / 👎.

- changed-files:
- any-glob-to-any-file: 'src/portable/st/stm32_fsdev/**'

"Port ChipIdea":
- changed-files:
- any-glob-to-any-file: 'src/portable/chipidea/**'

"Port NXP IP3511":
- changed-files:
- any-glob-to-any-file: 'src/portable/nxp/lpc_ip3511/**'

"Port NXP IP3516":
- changed-files:
- any-glob-to-any-file: 'src/portable/nxp/lpc_ip3516/**'

"Port MUSB":
- changed-files:
- any-glob-to-any-file:
- 'src/portable/mentor/musb/**'
- 'src/portable/sunxi/**'

"Port RUSB2":
- changed-files:
- any-glob-to-any-file: 'src/portable/renesas/rusb2/**'

"Port WCH USBFS":
- changed-files:
- any-glob-to-any-file: 'src/portable/wch/*usbfs*'

"Port WCH USBHS":
- changed-files:
- any-glob-to-any-file: 'src/portable/wch/*usbhs*'

"Port MAX3421":
- changed-files:
- any-glob-to-any-file: 'src/portable/analog/max3421/**'

"Port SAMD":
- changed-files:
- any-glob-to-any-file: 'src/portable/microchip/samd/**'

"Port SAMG":
- changed-files:
- any-glob-to-any-file: 'src/portable/microchip/samg/**'

"Port nRF":
- changed-files:
- any-glob-to-any-file: 'src/portable/nordic/nrf5x/**'

"Port Nuvoton":
- changed-files:
- any-glob-to-any-file: 'src/portable/nuvoton/**'

"Port RP2":
- changed-files:
- any-glob-to-any-file: 'src/portable/raspberrypi/**'

"Port MSP430":
- changed-files:
- any-glob-to-any-file: 'src/portable/ti/msp430x5xx/**'
22 changes: 21 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
issues:
types: [opened]
pull_request_target:
types: [opened]
types: [opened, synchronize, reopened]
discussion:
types: [created]

jobs:
label-priority:
# Author-based priority labels: only on issue/PR/discussion creation, not on PR updates.
if: github.event_name != 'pull_request_target' || github.event.action == 'opened'
runs-on: ubuntu-latest
permissions:
issues: write
Expand Down Expand Up @@ -160,3 +162,21 @@ jobs:
});
}
}

# Path-based Port labels: attach "Port <ip>" when a PR touches the matching
# dcd/hcd driver under src/portable/. Mapping lives in .github/labeler.yml.
label-port:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
Comment on lines +171 to +173
issues: write # allow auto-creating a Port label that doesn't exist yet
steps:
- uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yml
# sync-labels so a Port label is removed once a PR no longer touches
# that driver (job reruns on synchronize). Only labels listed in
# labeler.yml are managed, so author-based Prio/Sponsor labels are untouched.
sync-labels: true
Comment on lines +179 to +182
Loading