Skip to content
PatchbayDocs

Search documentation

Find a page

Open Patchbay

Releases

Create the first release

Set the starting commit of each component in Genesis, the first release of a project, and complete it.

On this page

Genesis is the first release of a project, and it records the commit where each component starts. You cannot start a version until Genesis is complete.

Why Genesis has no baseline⁠

Every other release compares with its baseline, which is the latest promoted release of the project when its version started. Genesis is the first release, so there is no earlier release to compare with, and every component in its release diff is Added.

When Genesis is complete, it becomes the baseline of your first version. See Compare releases.

Roles you need⁠

Genesis needs different roles for different steps, and What each role can do lists the roles for the rest of the project.

ActionMinimum project role
Start GenesisRelease manager
Add components and change refsContributor
Complete GenesisRelease manager

Start Genesis⁠

How Genesis starts depends on how you created the project. If you added components in the New project dialog, Patchbay starts Genesis for you, opens the Genesis page, and imports the components in the background.

If you did not add components, you start Genesis yourself:

  1. Open the project overview.
  2. Click Genesis (the plus sign). You can also press Cmd+K (or Ctrl+K) and select Start Genesis.

While Genesis is open, the project overview shows a Genesis row under Finish project setup. The row can show the status Needs components, Importing components… or Import needs attention, and you click it to open the Genesis page.

Set the starting commits⁠

You need the Contributor role or higher on the project.

  1. On the project overview, click the Genesis row. The Genesis page opens.
  2. Add each component with the component editor. See Add components.
  3. Click the ref at the end of a component row.
  4. Choose Branch, Tag or Commit, and then select a value.

A branch or a tag is a tracked ref, and a commit is a pinned ref. See Tracked and pinned refs.

The side panel shows the languages of the linked repositories. If a component tracks a branch, the panel also shows the pending pull requests for that branch. See Follow pull requests on GitHub.

Complete Genesis⁠

You need the Release manager role or higher on the project. The Complete genesis button shows only when Genesis has at least one saved component, and it stays disabled while a change is still being saved.

  1. On the Genesis page, click Complete genesis in the toolbar.
  2. Read the dialog, and then click Complete genesis.

When you confirm, Patchbay promotes Genesis, and its commits do not change after that. A message confirms Genesis complete and offers New release, so you can start your first version from there. See Work on a version.

Genesis from a project proposal⁠

A repository can declare a project in a patchbay.yaml catalog file. If the project does not exist yet, workspace owners and administrators get a project proposal in their inbox. See Inbox.

To accept the proposal, click Create project & start genesis in it. Patchbay creates a private project, adds the declared components, and completes Genesis in one step. Each declared component starts at the commit where Patchbay read the catalog file.

If Genesis does not finish, click Continue genesis in the inbox, or open the project. The project overview then shows Get your project ready and opens the Genesis wizard, which you can also open with Set up genesis.

The wizard has three steps:

  1. In Add repositories, the declared repositories are already selected. To add another repository, choose a GitHub account or Public, and then search for it.
  2. In Configure components, choose Standalone repository or Monorepo for each repository, and then choose the ref. The ref applies to every component of that repository, and in a monorepo each component needs its own folder. The ref of a declared repository is locked to the commit that Patchbay read.
  3. In Review & create, read the components, languages and top contributors, and then click Create genesis.

While it works, the wizard shows each stage: Resolving commits, Linking repositories, Creating components, Creating genesis release and Promoting release. When it shows Setup complete, Genesis is complete. If it shows Setup failed, click Try again.