Forum Discussion

djs's avatar
djs
Occasional Contributor
9 years ago

GitHub integration not working for me

I'm trying to push an API definition to GitHub.   I navigated to the Editor for the API, selected "Edit GitHub Push" from the "+" menu, entered the GitHub repository information and checked the "En...
  • fehguy's avatar
    9 years ago

    Hi David!  There are two aspects for GitHub push.

     

    1) Pushing your definitions upon save.  That's what it sounds like you have configured, and based on the filename, SwaggerHub will push either a JSON or YAML version directly to github.  Check your repository to verify that.

     

    2) Linking a GitHub repo to your account.  This is slightly different from above, it essentially hot-links the GitHub logo from your APIs page to the repo.  To configure that, click the "+" => Edit API Info => GitHub Link.  Then it will hot-link directly to your repo.

     

    I will get this added to the FAQ as well, please reply with any other questions!

  • fehguy's avatar
    fehguy
    9 years ago

    Hi, we have addressed the push issue.  If your output file has the suffix ".json", it'll be saved as JSON.  Otherwise, YAML.

     

    Please let us know how it goes!