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

Add assign command #36

Closed
burlakov-nick opened this issue Jan 19, 2022 · 3 comments
Closed

Add assign command #36

burlakov-nick opened this issue Jan 19, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@burlakov-nick
Copy link
Contributor

Sometimes it's handy to assign specific person to skip someone in the rotation (e.g. they're sick or on vacation). It can be done with several rotate commands, but it's not convenient.

Command could look like this

dienstplan assign <rota> user
@pilosus
Copy link
Owner

pilosus commented Jan 21, 2022

Sounds good. The command's convention is also in line with what's been done so far:

@dienstplan assign <rota-name> <user-mention>

The expected behav is the following. Let's say we've got a rota called duty with user list @user1 @user2 @user3 @user4. If the current oncall person is @user1 and we tell to the bot @dienstplan assign duty @user3, then @user3 becomes a current on-call and the order of users remains as it was.

Feel free to submit a PR.

@burlakov-nick
Copy link
Contributor Author

burlakov-nick commented Jan 21, 2022

Feel free to submit a PR.

I'll try, feel free to assign "assign" issue on me :)

@pilosus
Copy link
Owner

pilosus commented Jan 24, 2022

Done

@pilosus pilosus closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants