poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Is it possible to store command approvals information? #214

Closed LuisRendonS closed 4 years ago

LuisRendonS commented 4 years ago

Hey There, I hope someone can help me with this question. Right now I'm working with command approvals for deployment commands and i would like to store the information of the approval in a log file (if it was approved or denied, approver name, time of the approval, execution ID). I really hope this can be possible since it would be very helpful in my company.

DunlapOverbelt commented 4 years ago

@LuisRendonS it would be possible to do this with PoshBot middleware hooks I don't see one that does what you are looking for specifically, but the docs show an example of PostReceive log message or the PostExecute log results that you might be able to tweak to your needs.

LuisRendonS commented 4 years ago

@DunlapOverbelt thanks for your reply. You are rigth, i was looking for this the past few days but i couldn't find anything, so i guess i'll have to play a little with middleware hooks. Cheers