[Github Actions] Apply lang/python label to files outside of src/python (#32788)

Follow-up to https://github.com/grpc/grpc/pull/32751. I finally broke
down and put together a hacky way to mess with this manually. [This
hacked up version of the
implementation](https://gist.github.com/gnossen/f2f334b448eab73f383d65d5206056b6)
adds some unit tests to make sure it does exactly what we want.

The final issue was that [this
block](49b9dfa644/.github/labeler.yml (L39))
would never trigger unless _all_ of the explicitly mentioned files was
added there. The fix is to pull them each individually into their own
[`MatcherConfig`](d8f73a2893/src/labeler.ts (L6))
object with a single [`any`
field](d8f73a2893/src/labeler.ts (L8)).
pull/32792/head
Richard Belleville 2 years ago committed by GitHub
parent f9b7df58f6
commit fbbfbccbbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .github/labeler.yml

@ -36,11 +36,10 @@ lang/php:
- src/php/** - src/php/**
lang/python: lang/python:
- any: - bazel/python_rules.bzl
- bazel/python_rules.bzl - examples/python/**
- examples/python/** - requirements.bazel.txt
- requirements.bazel.txt - src/compiler/python*
- src/compiler/python*
- any: - any:
- src/python/** - src/python/**
- "!src/python/grpcio/grpc_core_dependencies.py" - "!src/python/grpcio/grpc_core_dependencies.py"

Loading…
Cancel
Save