Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mikegrima
Copy link
Contributor

@mikegrima mikegrima commented May 7, 2017

  • Significant refactor
  • Adds a lot of niceties and removes need for copypasta

- Significant refactor
- Adds a lot of niceties and removes need for copypasta
@mikegrima
Copy link
Contributor Author

mikegrima commented May 23, 2017

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
Copy link
Contributor Author

Added some more decorators in, such as:

  • @github_user_exists
  • @repo_must_exist

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
Copy link
Contributor Author

Added a new decorator @branch_must_exist

Converted the GitHub commands:
- !SetDescription
- !SetHomepage
- !AddCollab
- !AddUserToTeam
- !CreateRepo
- !DeleteRepo
- !SetDefaultBranch
- !SetBranchProtection
- !ListPRs
- !ListKeys
- !AddKey
- !DeleteKey
- !GetKey
@mikegrima
Copy link
Contributor Author

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

@mikegrima mikegrima requested a review from willbengtson June 3, 2017 19:55
@mikegrima mikegrima changed the title [WIP] Adding decorators for parsing commands. Adding decorators for parsing commands. Jun 6, 2017
@mikegrima mikegrima merged commit 1cd11c9 into Netflix:develop Jun 6, 2017
@mikegrima mikegrima deleted the decorators branch June 6, 2017 21:45
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

Successfully merging this pull request may close these issues.

1 participant