Skip to content

04 · Trackers and hosting

Where onreel takes tasks from and where it opens pull requests.

4.1 · The issue tracker

Every project has an issue tracker. Without a connection the local tracker is used: tasks are stored on your computer in the host data, and no outside service is needed. Task numbers grow within a project and are never reused. Local tasks stay when you switch to an external tracker and back.

An external tracker is connected to a project. These kinds are supplied: sourcecraft, github, gitlab, jira, gitverse and linear; the interface shows which fields a kind needs and what it can do. The list of kinds is closed: you cannot plug in your own adapter.

The owner makes the connection in the project settings, in the "Issue tracker" card: kind, address, repository or project, user and access token. The "Save and check" button makes a trial list request; if the tracker refuses, the connection is not saved.

4.2 · The unified task model

Every tracker is shown the same way: key, title, description, status, priority, labels, assignee, links and dates.

  • The status is one of four categories: open, in_progress, done, declined; the tracker's own status name is kept beside it.
  • The priority is trivial, minor, normal, critical or blocker. If a tracker has no priority, the field is empty.
  • If a tracker cannot handle a field, a write that includes it is rejected with invalid_request and the list of fields instead of being lost silently. What a tracker can do is visible from its capabilities.

onreel never moves a task to another status by itself: you or an agent do it with onreel issue update. When work is closed, tracker tasks are closed only at your request.

4.3 · Working with tasks from the command line

terminal
onreel tracker show --project <projectId> --check
onreel issue list --project <projectId>
onreel issue show --project <projectId> --key <key>
onreel issue create --project <projectId> --title "Title"
onreel issue update --project <projectId> --key <key> --status in_progress
onreel issue add-labels --project <projectId> --key <key> --label back
onreel issue comment --project <projectId> --key <key> --body "Text"

--check of tracker show makes one request and tells you whether the tracker responds. Labels are changed one at a time: add-labels and remove-labels leave the other labels of the task alone, and a label missing from the tracker is not created. An agent works in the project of its own Run, so it does not need --project.

You can take a task into work from the interface: from its card the text goes into the launch field on the project home, and the launch stays up to you.

4.4 · Git hosting, PRs and CI

Git hosting is the place where the code lives together with pull requests and CI. For GitHub, GitLab, SourceCraft and GitVerse it is the same as the tracker: the tracker connection is enough for the project to get PRs and CI. If tasks live in one place (for example in Jira or in the local tracker) and the code in another, the project has a second connection, the git hosting, with its own address and token.

Without a hosting connection the pr and ci commands are refused with forge_failed and say what to connect.

terminal
onreel forge show --project <projectId> --check
onreel forge show --project <projectId> --suggest
onreel pr list --project <projectId>
onreel pr show --project <projectId> --key <key>
onreel pr merge --project <projectId> --key <key> --head-sha <sha>
onreel pr create --project <projectId> --title "Title" --source <branch> --target main
onreel ci list --project <projectId>
onreel ci log --project <projectId> --job <id>

--suggest proposes a connection from the repository's origin address. The pr commands show, create, edit and comment on a PR and list its changed files; ci shows runs, jobs and a log window in which secrets are masked.

4.5 · Merging

onreel pr merge merges a PR only together with headSha, the head you saw: if the branch has moved on, there is no merge. There is no way to bypass checks, branch protection or review.

By default the owner merges PRs. To let a Run's coordinator merge task PRs after a green CI and the reviewer's approval, turn on onreel settings pr-merge --by agents or set the same for a project. The author of a task does not merge their own PR.

If main has moved ahead, the owner or the coordinator brings a lagging branch up with onreel pr sync: a merge commit and a push without force.

A project can turn on a merge queue: the host takes branches one at a time, builds a candidate on top of the current target, verifies it with a local command or the hosting's CI and advances the target by fast-forward only. The queue is off by default; the owner enables it with the project's mergeQueue setting, and branches are queued with onreel queue enqueue.

4.6 · Tokens

A connection token lives in tracker-secrets.json or forge-secrets.json in the data directory with 0600 permissions and appears neither in the journal nor in replies nor in the CLI: the interface only shows that a token is saved. The token is bound to the API address it was entered for: when the address changes, enter the token again.

Instead of a token you can give a $NAME reference to a host environment variable. Then only the name is written to disk, and the host takes the value from its environment on every call.

A backup of the data directory contains the token files: keep it as a secret.