Skip to content
Castellan
Steward's icon

How-to · Steward

Read as

Choosing what the Steward looks after

Pick the repositories the Steward looks after from those Reeve found, say whether each is released, and read the Your repositories table.

Article
1302
Applies to
Steward 0.36.139
Last reviewed
For
For developers
Written for Steward 0.36.139. Steward is at 0.36.354 now (40 small releases since: what changed).

Nothing is looked after until you pick it#

The Steward starts with no repositories. It offers the ones it could look after, and you pick them.

Found on this PC#

Found on this PC, on the Steward's page, lists your repositories that:

  • Reeve found on this PC (see Your repositories in Reeve);
  • have their origin on GitHub, and the account gh is signed in as can push to;
  • or have their origin on another host, worked with that host's tool or plain git. GitHub can't say whether you can push to those, so they're offered, and the first release says.

It leaves out the ones the Steward looks after already, and the ones you told Reeve to Leave alone. The list is kept for an hour; Look again looks now.

Beside each repository is one checkbox, off unless you check it:

  • Release each new version: when its branch carries a version with no release yet, the Steward releases it. See How the Steward releases.

Then:

  • Look after takes on that one repository.
  • To take on several in one go, check the box beside each one (or All), and choose Look after the picked. Each keeps its own checkbox.

There's no check for merging: you merge your own pull requests. See You merge, it builds.

What Look after fills in#

It reads the repository's clone, at its branch's tip, and fills in:

WhatFilled in with
How to test itnpm run typecheck and npm test, when package.json has those scripts; cargo test for Rust; go test ./... for Go; dotnet test on its unit tests for .NET.
The files its version is inpackage.json and package-lock.json; a src/*.ts file with the same version: 'x.y.z' or VERSION = 'x.y.z'; a .csproj or Directory.Build.props with <VersionPrefix>.
How to release it, if you checked Release each new versionIts own npm run release, when package.json has a release script; otherwise tag, a release the Steward makes itself. With no version files found, it's left empty: never released.

Where the list lives#

The repository goes into Castellan's Settings > Developer > Repositories, the one list that all the developers' staff read. Change a repository, or stop the Steward looking after it, there. See Your own repositories.

Each field in that list, as the Steward uses it:

Castellan's fieldWhat the Steward does with it
RepositoryThe repository on its host, as owner/name on GitHub. The Steward looks after only repositories that have one.
CheckoutYour clone. The Steward fetches in it and makes worktrees of it in its work folder; it never changes your working tree. vouch runs the tests in it.
BranchWhere your pull requests go, and where releases come from.
TestsRun on the branch's newest commit at a build before it's released, unless a vouch covers it, and by vouch in your clone. With none, a build releases it untested.
Version filesWhere the version is read, and where a build's stamp sets it.
Releasetag, or a command. Empty: never released.
The Steward merges ready pull requestsNo longer used: the Steward merges no pull requests, checked or not.

What the Steward won't look after#

  • A repository with no remote repository given: it has nothing for the Steward to release to.
  • Castellan's own repositories. Look after, claim-version and saving the setting each refuse one, and say why.

A repository of yours that shares a name with one of Castellan's staff is looked after under an id of its own, such as porter-2.

The Your repositories table#

ColumnWhat it says
RepositoryIts name, linked to its host, and a badge: releases, or not released when it has no way to be released.
CheckoutYour clone's path, the branch it's on, and how many files are changed there; "no checkout at" when the folder is gone.
Branch on originThe branch on its host, with its version and its head commit.
Latest releaseIts newest release, and whether the branch's version is still to be released.
Release PCWhich PC has its turn to release it. See The Steward on several PCs.
NotesAnything to know about it, when there is something.

Under a repository is what the next build brings ("Next build brings 3 commits since v1.4.2", with a link to compare them on GitHub), then a row for each open pull request: its number and title, its branch, team for your team's ("whoever opened it merges it once it is vouched"), and badges for its checks (checks passing, pending, failing, or none when its host runs none), whether it merges (mergeable or conflicting), draft, and into another branch than the repository's.

The table is made again after each round or button that did something, after a quiet round when GitHub says something new, on Refresh, and when you open the page after 10 minutes with no round. Opening the page doesn't ask GitHub anything while the rounds run.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 1302. Every version of Steward, and what changed in it, is in its release notes.