Overview · Steward
The Steward, the local release manager for your projects
What the Steward does with your repositories, how its builds work, what it needs, what it never does, and where to start.
- Article
- 1301
- Applies to
- Steward 0.36.299
- Last reviewed
- For
- For developers
What the Steward is#
The Steward is the local release manager for your projects. It runs on your PC, with your own git and your own sign-in, and looks after the repositories you pick: it hands out each new version before the work starts, and releases each new version you merge, with its notes from your CHANGELOG.md. It releases only the repositories you check, and only when you press a button (Release, or Run now once a build time has passed), until you turn on Builds and releases by itself.
It does three jobs:
- It hands out versions. Before you, or your AI coding assistant, start work that will raise a repository's version, you ask the Steward for that version. Two pieces of work started side by side never get the same one. See Versions claimed up front.
- It vouches for your work. Run
steward vouchonce a pull request is pushed: the repository's tests run on this PC, and when they pass, the pull request's commit is marked as tested. Then you merge it. The Steward never merges your pull requests. See Vouching. - It releases new versions. When a repository's branch carries a version with no release yet, the Steward releases it, with the notes from your
CHANGELOG.md. See How the Steward releases.
How it works#
It builds at set times. While it's on duty and Builds and releases by itself is on in its settings, it builds at its build times: 00:00, 06:00, 12:00 and 18:00 unless you change them, and a build the PC slept through begins once it wakes. At each build, for each repository you checked for releasing:
- It takes the newest commit on the repository's branch.
- When that commit carries a version with no release yet, it runs the repository's tests on it once, unless a vouch already covers it.
- When they pass, it releases that version.
Between builds it looks. Every 10 minutes it checks each repository's branch, pull requests and releases, and raises an alarm for anything that needs you. A fix that can't wait for the next build gets a changelog entry starting **Urgent fix:**, and its repository builds at once.
Code decides. No model is asked whether a version may go out: the Steward checks your tests, your versions and your host's own answers.
It works with your host. Repositories on GitHub, GitLab, Azure DevOps, Gitea or Forgejo, and Bitbucket Cloud are worked with through that host's own tools, signed in as you. Any other repository is worked with through plain git: a release there is a v<version> tag pushed to its origin.
Its home page#
The Steward's page is at http://steward.localhost:19494/, and Open on its card in Castellan goes there. From the top:
- Needs you: its alarms, each with Dismiss. See The Steward's alarms.
- Found on this PC: your repositories that it could look after, with Look after. See Choosing what the Steward looks after.
- Last stage: what the last build or button did, repository by repository, with its log.
- Your repositories: each one it looks after, with its branch, its latest release, and whether it releases.
- Release: Release and Refresh, for the repositories you check. Each asks first.
- Settings, in the title bar. See The Steward's settings and files.
Run now does a round at once, on duty or not.
What it never does#
- It never releases without your yes. Each repository starts with Release each new version off, and Builds and releases by itself starts off too: until you turn it on, a release happens only when you press Release, or Run now once a build time has passed since its last build.
- It never merges your pull requests. Whoever writes one merges it once it's vouched for.
- It never touches your working tree. It fetches, and works in worktrees of its own in its work folder. Your checkout's files and branch stay as they are.
- It never force-pushes, and never deletes a branch of yours.
- It releases only to the repository's own host. Nothing goes anywhere else.
What it needs#
- Git, and for a repository on a host with pull requests, that host's tool signed in as an account that can push to it: the GitHub CLI (
gh auth login), the GitLab CLI (glab), the Azure CLI (az) or the Gitea CLI (tea). Bitbucket Cloud takes an Atlassian API token in this PC's git credential store. - A clone of each repository on this PC.
- Reeve, to find your repositories for you. Without Reeve, add them yourself in Castellan's Settings > Developer > Repositories.
Getting started#
- Hire the Steward in Castellan, from the Cellarer's role card: Employee management, then Hire or switch an employee. It's included in the Workshop license. See Hiring, switching and letting staff go.
- Open its page, and pick the repositories it should look after under Found on this PC: Choosing what the Steward looks after. Check Release each new version for the ones it should release.
- Tell your AI coding assistant to claim a version before it starts, and to vouch for its branch once it's pushed: Vouching.
- Merge your pull requests, then press Release, or once you trust it, turn on Builds and releases by itself in its settings, so its builds release for you.
Related articles
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 1301. Every version of Steward, and what changed in it, is in its release notes.