Approving pull request builds

Not all pull requests need to be built. After all, for most projects, anyone can create a fork of the repository and submit a pull request. However, if an app on Bitrise is set up with Secrets that are exposed for pull request builds, for example, then you probably don’t want just anyone to be able to access those secrets.

That is why you have the option to require approval for a pull request build before it can start. This feature works somewhat differently for public and private apps:

  • Private apps: By default, Pull Requests submitted from a fork require approval The setting can be changed. If your secrets are NOT exposed to PRs, the build will run without asking for approval.

  • Public apps: Pull Requests submitted from a fork require approval by default and it cannot be changed. Public apps CANNOT opt out of this feature.

Enabling manual approval for private apps

To enable or disable manual approval, you need to be an admin or an owner on the application’s team. The application MUST be private: public apps cannot opt out of this feature!

  1. Open the app on Bitrise.

  2. Go to the Settings tab.

  3. Scroll down to the Enable manual build approval option.

    Approving Pull Request builds

    Please note that you can only change this setting for private apps! For public apps, this is ALWAYS enabled.

  4. Toggle the setting to enable or disable it.

    By default, it is set to enabled.

Approving the PR build

Approving the PR build

Please note that approving a PR build means approving it on Bitrise. Approving a pull request on GitHub, for example, isn't sufficient to start a build on Bitrise: an or an owner has to approve the build on Bitrise itself.

If a Pull Request is submitted from a fork, you will be notified that a PR build is waiting for approval:

  • A notification email will be sent with the name of the app, as well as links to the repository itself and to the app’s Builds page on Bitrise.

  • On the Git provider, the status of the CI check will show Pending - Waiting for approval

  • On the Builds page of the app, a confirmation box will be displayed.

    Approving Pull Request builds

To approve and run the build, click the Approve and Run Build button. Clicking Review opens the Pull Request on the website of your Git provider.