Skip to content

Bitrise

Just a few half baked utilities for hitting Bitrise apis.

They're very much the bare minimum needed for a specific use-case so please feel free to improve them!

This is a thin ruby wrapper on a couple of endpoints documented here: https://devcenter.bitrise.io/en/api/api-reference.html

Get Started

First create a personal access token: https://devcenter.bitrise.io/en/accounts/personal-access-tokens.html#creating-a-personal-access-token

require "apadmi_grout"
...
bitrise_service = Apadmi::Grout::DependencyInjector.bitrise_service(
<bitrise api token>,
<bitrise base url>, # probably "https://api.bitrise.io/v0.1/apps"
<bitrise app slug> # can be found in the url to your app on bitrise e.g. https://app.bitrise.io/app/<APP SLUG>/
)

Example

Listing builds for a certain pull request.

builds = bitrise_service.list_builds(<pull request id>, <workflow name>)

Yard Reference

Back to top