Moves Flume stories and tasks as the pull requests that name them go, and checks every pull request names one.
Write Closes CT2-32 (or Fixes, Resolves) in a pull request's description to move that story with it, or Part of CT2-32 just to link it. Then:
| The pull request | The story in Flume |
|---|---|
| Opened as a draft | In progress |
| Ready for review | In review |
| Converted back to a draft | In progress |
| Merged | Done, confirmed by whoever merged it |
A task's key moves only that task, through the same steps: In progress on a draft, In review when opened for review, Done when merged. Stacked pull requests close the story when the last one linked to it merges. For each event the Action posts a new comment saying where each item moved, so the pull request keeps a record; it tags the pull request's author when something didn't move as asked (a key Flume doesn't know, a story that is out of its release, done or reopened, a merge by someone Flume can't match) or when the sync couldn't reach Flume. Bot pull requests, pull requests into other branches, and keys inside backticks or code blocks are ignored.
-
Create a token in Flume. On the project's Settings page, under GitHub, enter the repository as
owner/nameand choose Create token. Copy it: Flume shows it once. Create one per repository, and revoke it there if it leaks. -
Add it to the repository as the Actions secret
FLUME_TOKEN(Settings, Secrets and variables, Actions). -
Add the workflow as
.github/workflows/flume.yml:name: Flume on: pull_request: types: [opened, edited, reopened, synchronize, ready_for_review, converted_to_draft, closed, labeled, unlabeled] pull_request_review: types: [submitted, dismissed] permissions: contents: read pull-requests: write jobs: flume: uses: TandemCreativeDev/flume-action/.github/workflows/flume.yml@v1 secrets: FLUME_TOKEN: ${{ secrets.FLUME_TOKEN }}
Another Flume (a local one through a tunnel, say) goes in
with: { flume-url: https://... }underuses. -
Make the ticket check required. Protect the default branch and require the status check
flume / ticket; it appears once the workflow has run on one pull request. Pull requests with no ticket (CI, docs, chores) take theno-ticketlabel: create it in the repository. -
Require an approving review in the same rule, with no bypass. Merging confirms work done, so this stops anyone, an agent included, merging their own work unreviewed.
Each person's GitHub username goes on their Flume Settings page. A merge by someone Flume can't match leaves the story In review for a PM to confirm.
This repository is published from Flume's own; change it there. v1 always points at the latest compatible release.