Skip to content

Commit

Permalink
Add example and note about subscribing whole teams
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound authored and bnjbvr committed Oct 24, 2022
1 parent 653ae22 commit 91274fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 91274fb

Please sign in to comment.