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 "Enabled" box. When saving the details a message popped up telling me that the GitHub push configuration wa saved successfully.
When I go to the "Show my APIs" page the Git icon is disabled next to all of my APIs, including the one I configured. If I click on it I get a message telling me that "GitHub has not been associated with this API".
Looks like I must have missed a step - can anyone point me in the right direction?
Thanks.
David
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!
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!