How do I configure github autodeploy on heroku using just the heroku REST Platform API - rest

I've searched the platform API docs on heroku and it doesn't appear to be possible. Is there some currently undocumented way to set the github link and enable autodeploy, just using the REST API? I know how to do it through the website, so this is specifically about doing it via REST commands ( specifically I'm using the heroku-client nodejs wrapper but I don't think that's relevant )
Thanks,
Josh

No, there is no public API for the GitHub integration so far.
You have to do it through the website.

Related

Google Workspace SCIM with GitHub

I'm looking for a solution to configure SCIM in Google Workspace (SSO is already configured by Google web app called GitHub Business) to provision users to the GitHub organization.
Unfortunately, it seems that the only way to do that is to use GitHub SCIM API.
Google workspace is not one of officially supported IdPs :/
How can I configure it correctly in Google Workspace?
Should I use some 3rd part app in Google to do that?
I contacted with GitHub support and they suggested to use GitHub SCIM API, but they can't guide me how to configure it by Google Workspace side. I also contacted with Google support, but they were not super helpful and basically didn't suggest any solution.

Is there a cli equivalent of Github cli for Bitbucket?

I'm looking for a Bitbucket tool that is similar to the Github cli. I'm aware of API, but that's not what I'm looking for. This tool is for the Bitbucket cloud version.
i don't think so there is one yet officially. If it's of any use, you could make use of my script https://github.com/psadi/bbcli - it is api based, and its for enterprise.

Programmatically enable GitHub Discussions for a repository

Is there a way to enable GitHub Discussions for a repository using the GitHub API? The only way to enable discussions that I could find is manually through the Settings page.
GitHub recently released the Discussions GraphQL API. The documentation for the API is available here.
With the GitHub CLI gh v2.22.0 (Jan. 2023), you can do so using gh repo edit --enable-discussions[=false]:
It enables/disables the discussion on your remote GitHub repository right from command-line.
That way, you don't have to directly manipulate the GH API: the API call is done for you through the API.

Upload/Update XSP application to Bluemix through Cloud Foundry API

I'm using Cloud Foundry API to modify apps on IBM Bluemix.
I got oauth key and succeeded in calling simple REST requests, like v2/apps.
However, as I want to update XSP application I need to send a nsf file to bluemix.
I tried to use /v2/apps/:guid request, but according to documentation I can only send application parameters, but I cannot send whole application file.
Is there an endpoint to do that?
There is also an API to Upload the bits for an App, but if my understanding is correct what you are asking is basically to emulate a cf push via REST API. Please note that cf push is complex and is not something that is recommended recreating via API on Cloud Foundry. I don't know what your requirements are, but I'd suggest you to use cf push to do that. Anyway if you want more information on what are the steps it performs (from an high level perspective) you can take a look here. I suggest you also to see this Github Cloud Foundry issue where the user is trying to programmatically recreate the cf push.

How to create a new Azure Website with integration to private Github repo using the Azure REST API?

There are many trivial examples that show how this is done without the Github integration. The Azure Powershell commandlet New-AzureWebsite supports only public repos (can be confirmed from source code [1]). Has anyone tried to create it with a connection to a private repo? It doesn't seem to be documented anywhere.
UPDATE: I've realized this might be something Kudu helps me with.
[1] https://github.com/Azure/azure-powershell/blob/e06a22c22f7a1c8153e9c2fa7c159ae7b1fd1dab/src/ServiceManagement/Services/Commands.Utilities/Websites/Services/GithubClient.cs#L124
We have not added the functionality to powershell. However, you could try using the ARMClient tool below to achieve just that. See its readme and wiki for info.
https://github.com/projectkudu/ARMClient
https://github.com/projectkudu/ARMClient/wiki/Setup-GitHub-publishing-to-Site

Categories