From 93ce9a50dac7d6bdf94683f21d3311b1faa15e63 Mon Sep 17 00:00:00 2001 From: Madison Swain-Bowden Date: Fri, 21 Oct 2022 14:53:59 -0700 Subject: [PATCH] Add example and note about subscribing whole teams --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 682bea5..ae71249 100644 --- a/README.md +++ b/README.md @@ -27,17 +27,20 @@ jobs: repo-token: "${{ secrets.GITHUB_TOKEN }}" ``` -Then, configure which users get @'d when for which labels in +Then, configure which users or teams get @'d when for which labels in `.github/subscribe-to-label.json`: ```json { "example_user_1": ["bug", "help wanted"], "example_user_2": ["good first issue"], - "example_user_3": ["enhancement"] + "example_user_3": ["enhancement"], + "org/team_1": ["question"] } ``` +**Note**: When using the action to subscribe teams, you must use an account which is a member of the organization the team is in. The default `github-actions` bot does not have the permissions necessary to reference teams (see [this example](https://github.com/WordPress/openverse/issues/320)). + ## Contributing See [`CONTRIBUTING.md`](./CONTRIBUTING.md).