-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature toggle for round-robin assignment #11
Comments
Hi @plowin Thanks for opening your issue here! The code here using lodash's sampleSize method to randomly pick It would be very helpful if you could provide the contents of your workflow. |
Hi, thanks a lot for the quick reply! My workflow is here, I tried using a team even though this is not documented:
|
@plowin In order to test the action I create a team with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
addReviewers: true
addAssignees: true
numberOfReviewers: 1
numberOfAssignees: 1
reviewers: |
/authors
assignees: |
this-is-an-unknown-assignee
/authors
skipKeywords: wip
excludeLabels: dependencies, wip The result looks like what you'd expect. Note that the default
Or with a cool but slightly cumbersome solution: create a private github app for your org with custom permissions and avatar, then use the app token in out workflow, e.g. wow-actions-bot. |
cool, I'll try it out once you release a v3! |
Hi, in my test-action I tried multiple variations and in the end even copied the exact action you pasted above but I keep getting the same error:
I am not familiar with debugging GH actions and error output does not help a lot here. v2 worked with the variations I tried. The GH history of this file shows you what I tried, they all fail with the exact same error. The PAT has org:admin scope. |
## [3.0.2](v3.0.1...v3.0.2) (2023-01-30) ### Bug Fixes * try to fix "Cannot read properties of undefined (reading 'length')" ([48e18c6](48e18c6)), closes [#11](#11)
@plowin v3.0.2 was released. Try to rerun your workflow. |
Hi nice workflow which we would like to use with an additional functionality:
When specifying a team as either reviewer or assignee and then configure
numberOfAssignees
, it always take the first user from the list. It would be nice to have some round-robin functionality here.Expected Behavior
Have a feature-toggle like
randomReviewers
andrandomAssignees
that can be set totrue
to assign random ppl from the team or list of people.Possible Solution
Some changes around
auto-assign/src/util.ts
Line 67 in c3701c7
The text was updated successfully, but these errors were encountered: