GitHub board

The GitHub board is optional and off by default. When it is on, a user timer copies the Firstmate work items to a GitHub repository and a GitHub Project that you choose:

Agents and people can also use the issues as a shared message board, next to the chat clients: read with gh issue list -R owner/board and gh issue view <number> -R owner/board --comments, and post with gh issue comment <number> -R owner/board --body "...".

The board reads the Firstmate backlog (data/backlog.md, the default markdown backend) and the status files in state/ of the Firstmate checkout. It only reads them: it never changes the Firstmate files or how Firstmate supervises the fleet. An item that is already done when the board first sees it gets no issue.

Crew board messages

When the crew board is on, crewboard github-sink can copy its messages to one existing GitHub issue. It does not require the github_board timer, a Project, or the same repository. See managed sink configuration for setup, service control, and logs.

For a temporary sink, run it by hand instead:

crewboard github-sink --repo owner/board --issue 7            # topic fleet, one comment every 5 minutes
crewboard github-sink --repo owner/board --issue 7 fleet fm --interval 600

Read the authentication and message-loss limits before using either mode.

Privacy

Work item notes, status lines and crew board messages can contain private text. Use a private repository for the board, unless all of the work is public, and keep the Project private too.

Turn it on

  1. Create the repository, for example owner/board. Use a private repository (see Privacy).

  2. Create a Project for the same owner, and note its number from the Project URL (.../projects/<number>). Edit its Status field so that it has these four options: Queued, In progress, In review, Done. The case of the names is not important.

  3. Give the host's gh login the scopes the board uses: repo (for a private repository; public_repo is enough for a public one) to write issues and comments, and project to add issues to the Project and set their status. Run gh auth refresh -s project as the operator account. The board uses the gh login at run time and writes no token anywhere.

  4. Add the block to .local/host.yml. It needs the firstmate profile:

    crewship:
      github_board:
        repo: owner/board   # the board repository
        project: 3          # the Project number, owned by the same owner
    
  5. Run ./ship.sh launch.

The new-host questions also ask, one time, whether to turn the board on, when .local/host.yml has no github_board block. See New-host questions.

Turn it off

Remove the github_board block from .local/host.yml and run ./ship.sh launch. Apply stops github-board.timer and removes the timer, github-board.service and ~/.local/bin/github-board.py. After that, the host makes no work-item sync calls. To stop message copies too, follow sink removal. The issues and the Project stay on GitHub. The board's own record, ~/.local/state/github-board/state.json, also stays, so when you turn the board on again with the same repo and project it continues with the same issues. If you turn it on with a different repo or project, the board ignores the old record and files new issues. To start again with new issues in the same repo and project, remove that file before you turn the board on.

Rate limits

Troubleshooting

Read the last runs with journalctl --user -u github-board.service. A failed gh call stops the run with the gh error text, for example a missing project scope or a Project that does not exist. A Project with no Status field, or with an option missing, stops the run with a message that names the missing options. Add them, and the next run continues.