Netflix / hubcommander

A Slack bot for GitHub organization management -- and other things too
Apache License 2.0
1.28k stars 156 forks source link

Adding decorators for parsing commands. #40

Closed mikegrima closed 7 years ago

mikegrima commented 7 years ago
mikegrima commented 7 years ago

Added an @auth() decorator which is to be used in conjunction with the @hubcommander_command() decorator.

This should mostly be stable, but I would like to convert some GitHub commands over before merging.

mikegrima commented 7 years ago

Added some more decorators in, such as:

and currently converting all of the GitHub commands over to the new decorated model.

The new decorators also have the ability of specifying if an argument should be all lowercase, uppercase, or case-sensitive.

mikegrima commented 7 years ago

Added a new decorator @branch_must_exist

mikegrima commented 7 years ago

Updated the documentation. Will need to do some more testing before merging.