Repository navigation
v0.27.3
Console shows what happened to the PR of each Review record after its review: whether it is open, merged or closed, and the commits that no review saw. It reads them from Bitbucket Cloud and GitHub every 10 minutes, so no person runs a command for them. It's still a 0.x prototype, not yet hardened for production.
Added
- PR states: every 10 minutes, Console reads from Bitbucket Cloud and GitHub whether each PR of the Review records is open, merged or closed, and the PR's commits that came after its last review, which no review saw. The Review records list has a State column, with · N after review when there are such commits. The record page shows the target branch, the merge commit and the time of the merge or the close, and under them each commit after the last review with its short hash, its time and its subject. It also says when the PR no longer has the reviewed head (a rebase or a force-push), or when the record has no reviewed head (a CLI before v0.27.2).
list_review_recordsandget_review_recordgivepr_state, withafter_review. An Admin saves a Bitbucket token (and a GitHub token for private repositories) in Settings → Agent sessions → PR states. The instance must reachapi.bitbucket.organdapi.github.com. Seedocs/agent-sessions.md› PR states. Migrations:pull_request_stateswith itsafter_reviewcolumn, and three columns onprojects.
Upgrading from v0.27.2
Console runs 3 migrations when it starts. They add a table and columns, and change no data:
20261202100000_create_pull_request_statesmakes the tablepull_request_states: the PR state of each PR of an Agent Project's Review records.20261202100100_add_forge_tokens_to_projectsaddsbitbucket_token,bitbucket_emailandgithub_tokentoprojects. Console encrypts the two tokens with keys that come fromSECRET_KEY_BASE.20261202100200_add_after_review_to_pull_request_statesaddsafter_reviewtopull_request_states.
EventStore and the Dispatcher have no migrations. deploy/ has no change. There is no new key in event_store.yml and no new variable in deploy/.env. The CLI and the plugin have no change other than their version, so the engineers do not need to run the setup script again.
bin/upgrade v0.27.3After the update, to show the PR states:
- An Admin saves a Bitbucket token in Settings → Agent sessions → PR states: a repository access token with Pull requests: Read, or a person's Atlassian API token with their email. A GitHub token is necessary only for private repositories on GitHub.
- The instance must reach
api.bitbucket.organdapi.github.comon port 443.
Console then reads the PRs within 10 minutes, also the PRs that merged before the update.