Skip to content
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

Permitting duplicate entries in assignees to effect a weighted rotation #120

Closed
jeremystretch opened this issue Mar 27, 2024 · 2 comments
Closed

Comments

@jeremystretch
Copy link

Thank you this is excellent tool! It has been very helpful in improving our issue triage process.

I'd like to propose allowing the assignees parameter to have duplicate entries when numOfAssignee is 1, to enable weighting of individual assignees.

We currently have four maintainers on our team: two full-time and two volunteers, and we'd like to proportionately assign new issues more frequently to the full-time maintainers. Our rough target is 4:1, such that a full-time maintainer is randomly assigned to a new issue on average four times more frequently than a volunteer.

My strategy to effect this was to define assignees with 10 total entries:

assignees: user1, user1, user1, user1, user2, user2, user2, user2, user3, user4

However, this line reduces the assignees list to a set of unique names, defeating the purpose and effecting an equal weighting for all users.

I appreciate the need to determine unique names when assigning multiple users, but could the logic be tweaked to avoid this when numOfAssignee is 1?

@pozil
Copy link
Owner

pozil commented Apr 4, 2024

Hi @jeremystretch, thanks for the feedback. This is a good feature request.
I just released a new version that addresses this need but I decided to adopt a slightly different syntax to make it more readable (see readme). Enjoy!

@pozil pozil closed this as completed Apr 4, 2024
@jeremystretch
Copy link
Author

Excellent, thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants