How to export all the comments added as part of a merge request on git - ibm bluemix - ibm-cloud

How can i export or get all the comments added as part of merge request on git - IBM Bluemix.
I got options from gitlab.
Any API is available from ibm bluemix git ?

Yes, I think this is the API you are looking for:
https://git.ng.bluemix.net/help/api/notes.md#list-all-merge-request-notes (ng might be different depending on your region)
Here's an example request:
https://git.ng.bluemix.net/api/v4/projects/:id/merge_requests/:merge_request_iid/notes?private_token=YOUR_PRIVATE_TOKEN

The version of Git used by the IBM Cloud is based on GitLab Community Edition. You should be able to use the GitLab API, to do anything you want to automate.

Related

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.

Automate mirroring GitHub to GCP Source Repository?

We run Google Cloud Functions (python), which require to be deployed from Google Cloud Source Repository. Since all the code is stored on GitHub we resort to first mirroring GitHub into Source Repository. Although this only requires a few mouse clicks, it becomes a burden to repeat over 3+ projects (dev, staging, production) times 5+ repos (5+ apps).
I am looking to automate the mirroring config, preferably to add into the Terraform automation we already use, into a hands-off project configuration. Does the Google API support this mirroring automation? So far on my Google Cloud expedition everything was available in their API!
I fail to find Terraform examples though, and would appreciate a tip.
Come to think of it, if I can take Source Repository out of the equation, that would be just fine with me too. After all, I only use it as a pass-through / empty shell.
The Cloud Source Repository API includes a Repo resource that has a Mirror Config object where you could type in your Github's URL, webhook and credentials to automate this procedure. I would initially test it with the create method, but if you have an existing Cloud Source Repository I believe the patch method will also be worth exploring.
Additionally, there is an open Feature Request in order to connect a repository via the Cloud Build GitHub App that I recommend you to star and follow, as it could further ease your automation needs.

How do I set up a gitlab integration in Bluemix DevOps ToolChain?

IBM Bluemix DevOps ToolChain allows source code repositories to be only github and IBM version gitlab. My repo is in the public gitlab cloud and i do not intend to move it to IBM's gitlab cloud. How do I set up my Toolchain?
Update: It is now possible to add gitlab.com repositories (or repositories from any other GitLab server on the public internet) to Bluemix DevOps Toolchains. More details are available in the Bluemix Documentation.
Original (outdated) answer:
It is not currently possible to add repositories on gitlab.com or other public GitLab servers to an IBM Bluemix DevOps toolchain. However, that capability is actively under development.
Until that feature is available, you could proceed by duplicating your repository to one of the supported Git providers. There are instructions for duplicating a repository at https://help.github.com/articles/duplicating-a-repository/. In short:
git clone --bare https://github.com/exampleuser/old-repository.git
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git
The example uses github.com, but this approach would work for any git repository.
I think this has been added recently, you can just pick it when you add a tool to your toolchain. There's also a blog post about it https://serifandsemaphore.io/build-a-serverless-api-in-seconds-with-go-c504398d86f6

Bluemix dev-ops services Web API?

I thought I'd read that there was an entire web services API for automating the latest Bluemix DevOps tooling? I don't see anything obvious in the documentation
https://console.ng.bluemix.net/docs/services/ContinuousDelivery/index.html#cd_getting_started
You're right. You can choose to create a toolchain or start from a toolchain template.
You may find this microservices devops toolchain template tutorial helpful.
https://www.ibm.com/devops/method/tutorials/tutorial_toolchain_microservices_cd?task=1
By default, the toolchain comes with these tool integrations:
IBM-hosted Git Repos and Issue Tracking repositories (repos)
Delivery pipelines
IBM Cloud DevOps Insights
The Eclipse Orion Web IDE
Sauce Labs
pagerDuty
Slack
See https://github.com/open-toolchain/sdk/wiki
This is where we are defining the API. Since SO won't let us have a conversation about what you're actual requirements are, feel free to create an issue on the repo to capture them.

Amazon Web Services and Github integration?

I would like to deploy a branch of a project on my github.com account to AWS Elastic Beanstalk, but I would adore being able to use a GUI.
Is there such a thing for AWS? Will I have to use the AWS command line tools? :-(
Thanks in advance for your time.
You can set up an EBS volume using the web API and then use something akin to SourceTree or RedMine to view the repository.