diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..6259e5d6c1 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,136 @@ +arch-aarch64: + - changed-files: + - any-glob-to-any-file: + - "src/arch/aarch64/**" + +arch-riscv64: + - changed-files: + - any-glob-to-any-file: + - "src/arch/riscv64/**" + +arch-x86_64: + - changed-files: + - any-glob-to-any-file: + - "src/arch/x86_64/**" + +cargo: + - changed-files: + - any-glob-to-any-file: + - "**/Cargo.toml" + - "**/Cargo.lock" + +ci: + - changed-files: + - any-glob-to-any-file: + - ".github/workflows/**" + +crate-builtins: + - changed-files: + - any-glob-to-any-file: + - "hermit-builtins/**" + +crate-macro: + - changed-files: + - any-glob-to-any-file: + - "hermit-macro/**" + +crate-xtask: + - changed-files: + - any-glob-to-any-file: + - "xtask/**" + +driver-gem: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/net/gem/**" + +driver-loopback: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/net/loopback.rs" + +driver-rtl8139: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/net/rtl8139.rs" + +driver-virtio-console: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/console/**" + +driver-virtio-fs: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/fs/**" + - "src/fs/virtio_fs.rs" + +driver-virtio-net: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/net/virtio/**" + +driver-virtio-vsock: + - changed-files: + - any-glob-to-any-file: + - "src/drivers/vsock/**" + - "src/executor/vsock.rs" + +executor: + - changed-files: + - any-glob-to-any-file: + - "src/executor/**" + +fd: + - changed-files: + - any-glob-to-any-file: + - "src/fd/**" + +fs: + - changed-files: + - any-glob-to-any-file: + - "src/fs/**" + +mm: + - changed-files: + - any-glob-to-any-file: + - "**/mm/**" + +plat-uhyve: + - changed-files: + - any-glob-to-any-file: + - "**/uhyve/**" + - "**/uhyve.rs" + +scheduler: + - changed-files: + - any-glob-to-any-file: + - "**/scheduler/**" + - "**/scheduler.rs" + +synch: + - changed-files: + - any-glob-to-any-file: + - "src/synch/**" + +syscalls: + - changed-files: + - any-glob-to-any-file: + - "src/syscalls/**" + +tests: + - changed-files: + - any-glob-to-any-file: + - "tests/**" + +transport-mmio: + - changed-files: + - any-glob-to-any-file: + - "**/mmio/**" + - "**/mmio.rs*" + +transport-pci: + - changed-files: + - any-glob-to-any-file: + - "**/pci/**" + - "**/pci.rs" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..80d6d6238a --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + issues: write + runs-on: ubuntu-24.04 + steps: + - uses: actions/labeler@v7