pilosus / dienstplan

Slack bot app for duty rotations
https://dienstplan-slack.pilosus.org
Other
21 stars 2 forks source link

[FEATURE] can we customize the prompt information? #65

Open qileilove opened 2 years ago

qileilove commented 2 years ago

Is your feature request related to a problem? Please describe. This tool works well for me, but there are some scenarios where we would like to customize the prompt information. For example, we would like the on-call person to receive a reminder to check the ci. Describe the solution you'd like

We can set up some custom reminder statements,like ‘Hey @nacy, we need you to help check our pipeline’

pilosus commented 2 years ago

Hi @qileilove

currently we can add a description to a rotation with:

@dienstplan create <rotation name> <list of user mentions> <duties description>

Then each invocation of

@dienstplan who <rotation name>

results in:

Hey <user>, you are an on-call person for <rotation name> rotation.
<duties description>

E.g. in your case it could be something like this:

@dienstplan create ci-rota @nancy @qileilove @pilosus
Please help to check our pipeline

and then:

you: 
@dienstplan who ci-rota

bot: 
Hey @nancy, you are an on-call person for ci-rota rotation.
Please help to check our pipeline

When you say you want to customise the prompt, do you mean:

1) it's not enough for you to have <duties description> field and you also want to change the wording you are an on-call person for <rotation name> rotation?

2) Or you want to be able to edit <duties description> for a rotation after it was created? E.g.

@dienstplan update <rotation name> <[updated] list of user mentions> <[updated] duties description>

3) Or you rather want to assign an individual <duties description> for each user from the <list of user mentions>?