sg: add ci build [runtype] to create branches that trigger runtypes
Created by: coury-clark
Extends sg ci build
to support special build types. These build types are limited to the "prefix builds" such as main-dry-run
.
sg ci build --force main-dry-run
will push HEAD to main-dry-run/mybranch
and report the corresponding build.
Test plan
Resulting branch: https://github.com/sourcegraph/sourcegraph/tree/main-dry-run/sg/dry-run Resulting CI build: https://buildkite.com/sourcegraph/sourcegraph/builds?branch=main-dry-run%2Fsg%2Fdry-run