Your customers always get exactly one commit of your agent: the live commit. Pushing never changes it. It changes only when someone makes another commit live, which is a deliberate action in the Branches window.
#Before you make a commit live
- Test it. Open the commit, talk to it in the Playground, and run a regression or an evaluation. See Run a regression or an evaluation.
- Compare it with what is live now. See Compare two commits.
#Make a commit live
Select the branch pill in the top bar to open the Branches window.
On the branch that holds the commit, select its commit count to list the commits.
On the commit's row, select the rocket icon. Its tooltip reads Make followed by the commit's tag and live.
To make a branch's newest commit live, you can use the rocket icon on the branch card instead.
Read the dialog. It names the commit, says customers get this exact commit until someone makes another one live, and names the commit it replaces.
Select Make live.
The commit gets the green Live chip and its branch card is outlined in green. Later commits on the same branch do not go live on their own: when you push a new commit, customers keep getting the live one until you make the new commit live.
#Roll back
To go back to an earlier commit, make that commit live, using the same steps. Nothing is deleted: the newer commits stay on their branch, and you can make one of them live again later.
#Lock a branch
Locking closes a branch so no more commits land on it, for example when a release is final and you want later work to happen elsewhere. Locking says nothing about what customers get: a locked branch can hold the live commit, and so can a draft one.
- To lock, select the lock icon on the branch card. If you have a builder session with unsaved changes on that branch, Lock first commits that session's work, then closes the branch.
- A locked branch shows Locked instead of Draft.
- If you push to a locked branch, the push creates a new draft branch with your changes. The builder tells you this before you push.
- To unlock, select the unlock icon on the card. Commits can land on the branch again; what customers get does not change.
#Archive a branch
Archive a branch you no longer need to take it out of every list. An archived branch cannot be made live, so archiving is not offered on the branch that holds the live commit.
- On the branch card, select the archive icon (Archive branch).
- Confirm with Archive.
To bring it back, open Archived at the bottom of the Branches window and select Restore beside it. It returns as a draft branch.
#From the CLI
The same actions exist in the Apollo CLI, for example apollo version live <tag> to make a commit live and apollo version lock <branch> to lock a branch. See the CLI command reference.