gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.79k stars 1.23k forks source link

Allow prebuilds for specific branches #5936

Open mikenikles opened 3 years ago

mikenikles commented 3 years ago

In the .gitpod.yml, we have the following option to enable prebuilds on all branches:

github:
  prebuilds:
    branches: true

I would like more granularity either through a regex, an array of branch names or a combination of the two.

Regex

github:
  prebuilds:
    branches: feature/*

Branch names

github:
  prebuilds:
    branches:
      - main
      - gp-code

Combination of regex & array

github:
  prebuilds:
    branches:
      - main
      - gp-code
      - feature/*

A good use case is https://github.com/gitpod-io/openvscode-server. Prebuilds run for the main branch, but not gp-code. The repo has 263 branches, for all but main and gp-code we don't need prebuilds.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.