Skip to content

Commit

Permalink
fixup! BOYSCOUT restapi
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Siegel committed Aug 10, 2018
1 parent 0163d1e commit 3eaea5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swaggertosdk/restapi/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def notify():
def rest_notify():
"""Github rest endpoint."""
sdkid = request.args.get("sdkid")
sdkbase = request.args.get("sdkbase", "master")
sdk_tag = request.args.get("repotag", sdkid.split("/")[-1].lower())

if not sdkid:
return {'message': 'sdkid is a required query parameter'}

sdkbase = request.args.get("sdkbase", "master")
sdk_tag = request.args.get("repotag", sdkid.split("/")[-1].lower())

rest_bot = RestAPIRepoHandler(sdkid, sdk_tag, sdkbase)
bot = BotHandler(rest_bot)
github_index = {
Expand Down

0 comments on commit 3eaea5e

Please sign in to comment.