Follow your changes on Delivery
BetaOne board of your pull requests, deploys and releases, with what each Scout check found on them.
Delivery shows your changes on their way to production: each pull request with the Scout checks run on it, each deploy on its environment, and each release your visitors reach. Click any of them to see what its check found. Rules sets what Flamio checks at each step and when a pull request may not merge — see How Flamio runs your delivery.
Before you begin
- Connect GitHub or Bitbucket to see every pull request and deploy of your repositories — see Connect GitHub and Connect Bitbucket. Without one, Delivery shows what your pipeline reports.
- Your pipeline checks previews with a CI key — see Check every deployed preview from CI. Each check of a pull request appears on Delivery.
- To see staging and production, the pipeline reports its deploys too — see Report your deploys.
- Releases come from the Flamio SDK on your site: a release is a new version the SDK reports — see Pass your release version to the SDK.
- Until all of this is set up, Finish setting up on top of Delivery lists what is left — see Finish setting up.
Finish setting up
Finish setting up shows how many of its steps are done; click it to fold or unfold the list. While a connection is broken, the list stays unfolded. Each step says what Delivery reads from, and offers the action that completes it:
| Step | Done when it shows | Until then |
|---|---|---|
| Code host | The repositories Flamio reads | A Connect button for GitHub and for Bitbucket. Reconnect when Bitbucket access was removed; Integrations when the GitHub app stopped. |
| Deploys | The environments that got a deploy | No deploys reported yet, which names the host once one is connected, with Docs on how to report your deploys. |
| Environments | What Delivery shows and checks, with your answer selected | Production only and Also staging; see Choose production only or also staging. |
| Pull request checks | Scout checks pull requests, once Scout checked a pull request | Connect CI opens the CI keys. Waiting for the first run means a key exists and no pull request was checked yet. |
| Automatic checks | Which of the staging and release checks is on | Nothing is checked by itself: staging and release checks are off, with Rules. |
| Release version | The newest version the Flamio SDK reported | Optional, but releases, their Issues, release checks and the release report need it. Docs shows how to pass the version. |
| Release report | Sent to Slack or email after each release | Off: nobody hears what a release changed, with Release reports, which opens Digests → Release reports. Optional while the period has no release. |
| Rules | The preset in use, marked default until you save your own rules | Merges can't be blocked: checks on pull requests are off, with Integrations, when Block merges is on and a connected host does not show Flamio's check. |
Connecting a host and creating a CI key need a role that manages integrations; anyone else reads Ask an admin to connect or Ask an admin to reconnect. Opening Rules and answering Environments need a role that manages tests, Release reports one that manages dashboards; anyone else reads Ask an admin to turn it on, or Ask an admin to choose for Environments. When every step is done, the list leaves the page. To see it again, open the repository menu next to the title and click Setup.
Read the board
Open Delivery
Click Delivery in the sidebar and pick the period: 7d, 30d or 90d.
See what is on each environment
The cards are the environments your deploys go to, read from GitHub or Bitbucket, or reported by your pipeline. Each one shows what is on it now, whatever the period (Nothing deployed yet before its first deploy), and the state of its newest check, such as Passed or Found 1. A card has its own colour: the colour of its environment in the tables and on Graph.
Delivery shows the environments you have, one production or several stages before it. The cards and lanes run from the first stage to production: in the order your .flamio.yml lists them under environments, else dev, then test or QA, then UAT, then stage or staging, then the rest in the order Flamio first saw them.
A staging card says whether it can go to production:
| Label | Meaning |
|---|---|
| Ready | Its deploy and every pull request on it that production does not have yet passed their newest check. |
| Blocked | A check found a task broken. |
| Checking | A check is still running. |
| Couldn't check | A check could not decide, or could not get in. The card says why, such as the address leading to another site. |
| Not checked | Something on it has no check, only one of an older commit, or more pull requests wait than the card lists. |
| Not deployed | Nothing was deployed there yet; the panel says so, the card reads Nothing deployed yet. |
Under it, the card counts the pull requests not in production. To have every staging deploy checked, see Check staging after every deploy.
Follow a change
Below the cards, the tabs Pull requests, Deploys and Releases list the period as tables. Releases are the versions the Flamio SDK on your site reports. A pull request row has its Check and a column per environment: when a deploy took it there, with that deploy's check. On production the column shows the release it went out in, and — until it gets there.
On screens from tablet width up, List and Graph on the right of the tabs switch the view. Graph draws the same on a line per environment, with each pull request on its own row under the branch it merges into. Click a pull request's name or any point to open it; Needs attention and the search light up what they match. List returns to the tables.
Narrow it down
Click Needs attention to keep only what the newest check found something in or could not check. Or type in Search pull requests, Search deploys or Search releases.
Open the details
Click a row, a cell or an environment card. Its details open in a drawer:
- A pull request shows its Journey — Opened, Checked, Merged and each environment it reached — and its Checks.
- A deploy shows its Pull requests in this deploy and the release it went out as.
- A release shows Issues on real visits — what On-Live saw New in this release, Fixed in this release or Seen again after its fix — then Pull requests in this release and Deploys.
- An environment shows what is on it now, Not in production — each pull request on it that production does not have yet, with its newest check — then Releases and History.
Open pull request, Open site and Open run leave for the change itself. To give an environment its site address, see Give an environment its address.
Read a check
Click a check to open it. Findings lists what the check found that Scout is sure enough of to send on its own; Candidates lists the rest, the most severe first; N more in the run opens the run when there are more. What was checked lists each task with its outcome.
Move between items
The arrow at the top of the drawer goes back to what you opened before it. The arrows at the bottom step to the previous or next deploy on the same environment, or release. Copy link copies a link that opens the same drawer.
Hide an environment you do not use
Connecting GitHub or Bitbucket adds a card for every environment your repository has. Bitbucket gives each repository Test, Staging and Production, so a team without staging still gets a Staging card. Until an environment gets a deploy, its card reads Nothing deployed yet.
On a card you do not use, open … and click Hide from Delivery. Its card, its column in Pull requests, its line on Graph and its deploys leave the page. To bring it back, click N hidden after the cards and pick Show with its name. Hiding needs the permission to manage tests, and changes only what Delivery draws: the environment stays in GitHub or Bitbucket.
Choose production only or also staging
Environments in Finish setting up asks what Delivery shows and checks:
- Production only keeps every staging environment off Delivery, including those added or set to staging later, and turns the staging check off. Previews and environments you hid yourself stay as they are.
- Also staging shows the staging environments and has the staging check cover them. The check stays off until you turn it on in Rules.
The step keeps both choices, so you can change the answer later. While a .flamio.yml manages your rules, the answer only shows or hides environments: the file keeps the staging check. A file can give the answer itself with environment_scope (see the .flamio.yml reference); while it does, the step shows the file's answer and you change it in the file. Answering needs the permission to manage tests.
Set an environment's kind
Until you set it, Flamio guesses an environment's kind from its name: a name starting with "prod" is production, a name with "preview" is a preview, anything else is staging. So Bitbucket's Test starts as staging.
Click the environment card and pick Production, Staging or Preview under Kind in the panel. Your pick stays when GitHub or Bitbucket syncs again and when a deploy report states another kind. An environment set to Preview leaves the cards, since each preview belongs to one pull request. You need the permission to manage tests.
An environment your .flamio.yml, or the rules saved on Rules, names under environments takes its kind from there, and Kind is locked: change it in the file. Once the file stops naming the environment, it keeps that kind and you can pick it again.
Let Scout into a protected preview
A preview behind Vercel Deployment Protection shows Scout the Vercel login instead of your app. The check then reads Couldn't check and says the address leads to another site. Give Scout the preview's bypass once, and staging checks open your app:
- In Vercel, open your project, then Settings > Deployment Protection, create a Protection Bypass for Automation and copy its secret.
- On Delivery, click a staging or preview environment card.
- Under Preview protection, click Add bypass secret.
- Keep the header
x-vercel-protection-bypass, paste the secret and click Save.
The section then reads On: Scout sends with the header, who saved it and when. Flamio keeps the secret sealed and never shows it again. Scout sends it on staging checks and pull request checks only, to an address you typed for the environment or that GitHub or Bitbucket reported, and never to another site. An address your pipeline reports, or applies in a .flamio.yml, with a CI key gets it only once a member types the environment's address. One secret serves every environment of the project. Replace saves a new one, Remove asks to confirm, then deletes it. You need the permission to manage tests. A check your own pipeline starts does not use it: send the header from the pipeline, see Check from CI.
Report your deploys
Name the environment of a check
The Flamio Scout GitHub Action sends the environment of the deployment it checks, so the check appears on that environment. In other CI, pass --environment <name> to flamio scout check. When you call the API yourself, add environment to the change of the check:
"change": {
"sha": "4f2a9c1",
"branch": "feature/KAN-33-signin",
"environment": { "name": "Preview" }
}Report a deploy
POST https://api.flamio.org/api/deployments with the same CI key records a deploy:
curl -sS https://api.flamio.org/api/deployments \
-H "Authorization: Bearer $FLAMIO_CI_KEY" \
-H "Content-Type: application/json" \
-d '{
"environment": { "name": "Production" },
"sha": "6f4a2d8",
"ref": "main",
"url": "https://shop.example.com",
"version": "2.4.2",
"repo": "acme/storefront",
"pullRequests": [216, 219]
}'| Field | What it does |
|---|---|
environment | Required. name as your host writes it; kind (preview, staging or production) when the name does not say. A name starting with "prod" is production, a name with "preview" is a preview, anything else is staging; a kind set in the panel wins. |
sha | Required. The deployed commit. |
ref | The branch or tag deployed. |
url | The deployed address. |
version | The version the site carries — the same value you pass to the Flamio SDK as version. The release itself comes from the SDK; a production deploy with the same version sits on that release. On a production environment where no deploy reports the release's version (deploys from GitHub or Bitbucket never do), the release takes that environment's successful deploys that finished since the release before it was first seen, and their pull requests. |
repo | owner/name. Required with pullRequests. |
pullRequests | The pull request numbers this deploy brought since the previous deploy to the environment. |
status | success (default), failure, in_progress or inactive. |
deployedAt | When it deployed, ISO 8601. Default: when Flamio receives the report. |
deployId | Your own id of the deploy. A second report with the same id updates the deploy instead of adding one. |
The answer, wrapped in response, carries the deploymentId and the environmentId. The flamio CLI does not report deploys; call the API from your pipeline's deploy step.
Result
Each pull request and deploy your pipeline reports, and each release the Flamio SDK reports, is on Delivery, with the state of its newest check and, for a release, the issues visitors met on it. With the release report on, each staging and pull request check posts its verdict to its Slack channel, and emails its members when it failed or blocked the merge.
Limitations
- Only GitHub and Bitbucket connect as code hosts. For GitLab or any other host, Delivery knows a pull request only from what your pipeline reports: the checks run on it and the deploys that name it. It does not show when such a pull request merged, its author, or pull requests no check ran on.
- Rules block a merge, not a release: a check of a live release reports what it found, and nothing stops the deploy — see How Flamio runs your delivery.