You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`assignees`| String | only if `teams` is not specified | n/a | Comma separated list of user names. Issue will be assigned to those users. |
10
-
|`teams`| String | only if `assignees` is not specified | n/a | Comma separated list of team names without the org prefix. Issue will be assigned to the team members.<br/><br/>**Important Requirement:** if using the `teams` input parameter, you need to use a personal access token with `read:org` scope (the default `GITHUB_TOKEN` is not enough). |
11
-
|`numOfAssignee`| Number | false | n/a | Number of assignees that will be randomly picked from the teams or assignees. If not specified, assigns all users. |
12
-
|`abortIfPreviousAssignees`| Boolean | false | false | Flag that aborts the action if there were assignees previously. |
13
-
|`removePreviousAssignees`| Boolean | false | false | Flag that removes assignees before assigning them (useful the issue is reasigned). |
14
-
|`allowNoAssignees`| Boolean | false | false | Flag that prevents the action from failing when there are no assignees. |
15
-
|`allowSelfAssign`| Boolean | false | true | Flag that allows self-assignment to the issue author.<br/><br/>This flag is ignored when working with PRs as self assigning a PR for review is forbidden by GitHub. |
16
-
|`issueNumber`| Number | false | n/a | Allows to override the issue number. This can be useful when context is missing. |
17
-
|`teamIsPullRequestReviewer`| Boolean | false | false | Sets team as the PR reviewer instead of a member of the team. |
|`assignees`| String | only if `teams` is not specified | n/a | Comma separated list of user names with optional [weights](#working-with-weighted-assignements). Issue will be assigned to those users. |
10
+
|`teams`| String | only if `assignees` is not specified | n/a | Comma separated list of team names without the org prefix with optional [weights](#working-with-weighted-assignements). Issue will be assigned to the team members.<br/><br/>**Important Requirement:** if using the `teams` input parameter, you need to use a personal access token with `read:org` scope (the default `GITHUB_TOKEN` is not enough). |
11
+
|`numOfAssignee`| Number | false | n/a | Number of assignees that will be randomly picked from the teams or assignees. If not specified, assigns all users. |
12
+
|`abortIfPreviousAssignees`| Boolean | false | false | Flag that aborts the action if there were assignees previously. |
13
+
|`removePreviousAssignees`| Boolean | false | false | Flag that removes assignees before assigning them (useful the issue is reasigned). |
14
+
|`allowNoAssignees`| Boolean | false | false | Flag that prevents the action from failing when there are no assignees. |
15
+
|`allowSelfAssign`| Boolean | false | true | Flag that allows self-assignment to the issue author.<br/><br/>This flag is ignored when working with PRs as self assigning a PR for review is forbidden by GitHub. |
16
+
|`issueNumber`| Number | false | n/a | Allows to override the issue number. This can be useful when context is missing. |
17
+
|`teamIsPullRequestReviewer`| Boolean | false | false | Sets team as the PR reviewer instead of a member of the team. |
18
18
19
19
## Examples
20
20
@@ -69,6 +69,30 @@ jobs:
69
69
numOfAssignee: 1
70
70
```
71
71
72
+
### Working with weighted assignements
73
+
74
+
When specifying `assignees` or `teams` values, you may provide weights to balance the randomness of the selection.
75
+
The following formats are supported:
76
+
77
+
```yml
78
+
# No weights specified (same weight for all items)
79
+
assignees: a, b, c
80
+
# Weights specified
81
+
assignees: a:1, b:5, c:2
82
+
# Some weights specified (item weight defaults to 1 when not specified)
0 commit comments