Skip to content

v0.27.3

Latest

Choose a tag to compare

@Shankar1598 Shankar1598 released this 02 Dec 07:18
· 169 commits to main since this release

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_records and get_review_record give pr_state, with after_review. An Admin saves a Bitbucket token (and a GitHub token for private repositories) in Settings → Agent sessions → PR states. The instance must reach api.bitbucket.org and api.github.com. See docs/agent-sessions.md › PR states. Migrations: pull_request_states with its after_review column, and three columns on projects.

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_states makes the table pull_request_states: the PR state of each PR of an Agent Project's Review records.
  • 20261202100100_add_forge_tokens_to_projects adds bitbucket_token, bitbucket_email and github_token to projects. Console encrypts the two tokens with keys that come from SECRET_KEY_BASE.
  • 20261202100200_add_after_review_to_pull_request_states adds after_review to pull_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.3

After 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.org and api.github.com on port 443.

Console then reads the PRs within 10 minutes, also the PRs that merged before the update.