Rollup merge of #114930 - ChrisDenton:label-os, r=cuviper

Automatically add OS labels to std PRs

I'd love to have `library/std/src/sys` PRs that touch Windows stuff to have the `O-windows` label for easier discovery (and rediscovery). While I'm here I added a couple of other auto OS labels. Perhaps `O-unix` is a little too broad but it's hard to be more specific and I think it's still useful insomuch as POSIX is a thing.

r? libs
This commit is contained in:
Dylan DPC 2023-08-23 05:35:15 +00:00 committed by GitHub
commit 0718b75ecb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,6 +177,98 @@ exclude_labels = [
"T-*",
]
[autolabel."O-android"]
trigger_files = [
"library/std/src/os/android"
]
[autolabel."O-fuchsia"]
trigger_files = [
"library/std/src/os/fuchsia"
]
[autolabel."O-hermit"]
trigger_files = [
"library/std/src/sys/hermit",
"library/std/src/os/hermit"
]
[autolabel."O-ios"]
trigger_files = [
"library/std/src/os/ios"
]
[autolabel."O-itron"]
trigger_files = [
"library/std/src/sys/itron"
]
[autolabel."O-linux"]
trigger_files = [
"library/std/src/os/linux"
]
[autolabel."O-macos"]
trigger_files = [
"library/std/src/os/macos"
]
[autolabel."O-netbsd"]
trigger_files = [
"library/std/src/os/netbsd"
]
[autolabel."O-redox"]
trigger_files = [
"library/std/src/os/redox"
]
[autolabel."O-SGX"]
trigger_files = [
"library/std/src/sys/sgx",
"library/std/src/os/fortanix_sgx"
]
[autolabel."O-solaris"]
trigger_files = [
"library/std/src/os/solaris"
]
[autolabel."O-solid"]
trigger_files = [
"library/std/src/sys/solid",
"library/std/src/os/solid"
]
[autolabel."O-unix"]
trigger_files = [
"library/std/src/sys/unix",
"library/std/src/os/unix"
]
[autolabel."O-wasi"]
trigger_files = [
"library/std/src/sys/wasi",
"library/std/src/os/wasi"
]
[autolabel."O-wasm"]
trigger_files = [
"library/std/src/sys/wasm",
"library/std/src/os/wasm"
]
[autolabel."O-watchos"]
trigger_files = [
"library/std/src/os/watchos"
]
[autolabel."O-windows"]
trigger_files = [
"library/std/src/sys/windows",
"library/std/src/os/windows"
]
[autolabel."T-bootstrap"]
trigger_files = [
"x.py",