Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
1aecbb2
feat: connect through Barynt's GitHub App — repositories picked from …
Jafoson Nov 23, 2026
da9bdc8
feat: the settings section lists repositories with the SDK's list and…
Jafoson Nov 23, 2026
cc732d8
fix: an installation's repository is ready — GitHub answers its token…
Jafoson Nov 23, 2026
b1b3786
feat: the plugin speaks German — its own texts through the SDK's tran…
Jafoson Nov 23, 2026
3c4d1b2
refactor: no repository check below the settings — the picker already…
Jafoson Nov 23, 2026
7375b38
feat: branch names by the common convention — {type}/{key}-{title} by…
Jafoson Nov 23, 2026
f3f25a6
fix: branch name suggestions show just their example (BARY-238)
Jafoson Nov 23, 2026
7361bdc
feat: rules for each step of a pull request and failing checks, branc…
Jafoson Nov 24, 2026
0469472
feat: run a workflow from an issue, deployment rules, and deployments…
Jafoson Nov 24, 2026
8107bbb
feat: the settings start with "General", and Branches and GitHub Acti…
Jafoson Nov 24, 2026
9c93cde
feat: the own token is the fallback for a connected GitHub account
Jafoson Nov 24, 2026
ed67faf
feat: with several repositories, creating a branch asks which — in th…
Jafoson Nov 24, 2026
5d1bc24
feat: the repository pick shows the branch icon
Jafoson Nov 24, 2026
84fd9db
feat: the development panel carries the pull request icon
Jafoson Nov 24, 2026
63b472f
style: the development panel sits edge to edge in the sidebar, with q…
Jafoson Nov 24, 2026
cc9a904
feat: create a branch in a window — its name and where it starts to c…
Jafoson Nov 24, 2026
4cb9f28
style: a branch copies on a click, and renaming and deleting sit in i…
Jafoson Nov 25, 2026
477d476
feat: with several branches, the one that matters most on top — an op…
Jafoson Nov 25, 2026
50b8369
style: more and done branches fold under a small centred toggle
Jafoson Nov 25, 2026
a10f36d
feat: the Branch section folds away under its head
Jafoson Nov 25, 2026
ef4f25b
feat: the Branch section stays folded for each person (storage:own)
Jafoson Nov 25, 2026
c5837ae
feat: pull requests and commits show before there are any, and a pull…
Jafoson Nov 25, 2026
e0c3e84
style: the panel's sections count what they hold by their title, and …
Jafoson Nov 25, 2026
305ee5c
feat(panel): one button for every further branch, sorted inside into …
Jafoson Nov 25, 2026
d77cf72
feat(panel): the further branches open from a quiet button, like the …
Jafoson Nov 25, 2026
c2d19a3
feat(panel): the further branches and the commits fold away again wit…
Jafoson Nov 25, 2026
2bd74e2
feat(panel): pull requests fold away, open ones first, two at once an…
Jafoson Nov 25, 2026
2b38fd8
feat(panel): commits on one line each, opening on GitHub — and the se…
Jafoson Nov 25, 2026
c7ae4bf
feat(panel): a pull request's way to the merge — stations, the next s…
Jafoson Nov 25, 2026
bda01a6
feat(panel): merged and closed pull requests as small cards — number,…
Jafoson Nov 25, 2026
4cd091d
feat(panel): reviews one line each with short bot names, the newest c…
Jafoson Nov 25, 2026
5202cd5
feat(panel): with nothing linked, where to start — create a branch or…
Jafoson Nov 25, 2026
dbef859
feat(panel): a quiet start with nothing linked — a line, Create branc…
Jafoson Nov 25, 2026
39f7da4
feat(actions): the branch window says where and why, marks the defaul…
Jafoson Nov 25, 2026
25c6227
feat(actions): the branch window — repository first (a choice with se…
Jafoson Nov 25, 2026
abb670c
feat(panel): the branch open, pull requests and commits folded by def…
Jafoson Nov 25, 2026
6b8926e
feat(panel): a skeleton while GitHub's state loads (BARY-238)
Jafoson Nov 25, 2026
e5d7561
feat(row): the board card's pull request as signals — checks as passe…
Jafoson Nov 25, 2026
01ac94b
feat(row): number and icon close, a divider, the review — and on the …
Jafoson Nov 26, 2026
0bab687
ci: build against Barynt's branch of the same name when there is one …
Jafoson Nov 26, 2026
0854c56
feat(manifest): GitHub's filters — pull request, its status, branch, …
Jafoson Nov 26, 2026
3320986
feat(manifest): pick a particular pull request or branch in the filte…
Jafoson Nov 26, 2026
5428018
feat(manifest): pull request status, actions status and pull request …
Jafoson Nov 26, 2026
ad734a6
feat: deployments as a line of environments, each opening a window wi…
Jafoson Nov 27, 2026
f8513a1
feat: deployments by stage — services, regions and previews; a window…
Jafoson Nov 27, 2026
8a3e0dd
feat: logs coloured and folded by step, a full-log window, raw log, d…
Jafoson Nov 27, 2026
7a2c897
feat: a job's log by its steps, as GitHub shows it — which job and wh…
Jafoson Nov 27, 2026
f575747
feat: the full log shows all of a job's log in one, not by steps — do…
Jafoson Nov 27, 2026
37fa084
feat: workflows in the issue — the newest run of each, folded unless …
Jafoson Nov 27, 2026
3ae93b0
feat: workflow runs in their state's colour, starting one from a + in…
Jafoson Nov 27, 2026
3b03012
feat: workflow runs as two lines — name and state, then how and when;…
Jafoson Nov 27, 2026
1011ea3
feat: workflow runs as cards (BARY-238)
Jafoson Nov 27, 2026
c84eee0
feat: workflow runs as a list again (BARY-238)
Jafoson Nov 27, 2026
2a09040
feat: a pull request's window — overview, workflows, reviews and comm…
Jafoson Nov 27, 2026
3dfb419
feat: the whole pull request card opens its window (BARY-238)
Jafoson Nov 27, 2026
559535f
feat: back to the list from a run, a job's log or an environment by t…
Jafoson Nov 27, 2026
1ff140a
feat: a pull request's branches and repository link to GitHub in its …
Jafoson Nov 27, 2026
457fdfe
fix: workflows hidden from issues are said so, not "no runs" (BARY-238)
Jafoson Nov 27, 2026
60373d0
feat(workflows): hidden workflows as one sentence, its link straight …
Jafoson Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,26 @@ jobs:
with:
path: plugin
# The SDK isn't on npm yet: it comes from Barynt's repository, next
# to the plugin as package.json expects (`file:../barynt/…`). The
# repository variable BARYNT_REF picks another branch or tag than main.
# to the plugin as package.json expects (`file:../barynt/…`). A branch
# of the same name there wins — a change made in both repositories
# builds against its own SDK; else the repository variable BARYNT_REF,
# else main.
- name: Pick Barynt's branch
id: barynt
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
FALLBACK: ${{ vars.BARYNT_REF || 'main' }}
run: |
if git ls-remote --exit-code --heads https://github.com/barynt-dev/barynt-web.git "$BRANCH" >/dev/null; then
echo "ref=$BRANCH" >> "$GITHUB_OUTPUT"
else
echo "ref=$FALLBACK" >> "$GITHUB_OUTPUT"
fi
echo "Barynt at: $(grep ref= "$GITHUB_OUTPUT" | tail -1)"
- uses: actions/checkout@v5
with:
repository: barynt-dev/barynt-web
ref: ${{ vars.BARYNT_REF || 'main' }}
ref: ${{ steps.barynt.outputs.ref }}
path: barynt
sparse-checkout: packages/plugin-sdk
- uses: oven-sh/setup-bun@v2
Expand Down
155 changes: 116 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pull request with reviews and checks, the issue gets a **Development** panel
with branch, commits and checks, rules move it to _In Review_ or _Done_ as the
pull request opens and merges, and a branch starts right from the issue.

There's no server to run: Barynt reads GitHub's webhooks itself and keeps what
There's no server to run: Barynt connects through its own GitHub App, reads what GitHub reports and keeps what
they say on the issues; this plugin draws it.

![Pull requests on the board](preview-1.webp)
Expand All @@ -25,40 +25,79 @@ overall result. With several pull requests, the newest open one and "+n".
The rows of a whole board come from one request to Barynt, never one to
GitHub per card, and change on their own when GitHub reports.

## Set it up in a project
## Set it up

Barynt connects to GitHub through its own **GitHub App** — installed once on
your organization, where you pick the repositories it may see. GitHub then
reports to Barynt by itself: no webhook per repository, no token for the
team.

1. **Admin → Plugins**: install GitHub from the official directory
([barynt-plugin-store](https://github.com/barynt-dev/barynt-plugin-store)),
then release it for the workspace.
2. **Project settings → Plugins → GitHub**: confirm what it may do and
switch it on.
3. The card **Webhooks from other services** shows an address and a
secret. In GitHub, open the repository (or the organization) →
**Settings → Webhooks → Add webhook**:
- **Payload URL**: the address
- **Content type**: `application/json`
- **Secret**: the secret
- **Let me select individual events**: Branch or tag creation, Branch or
tag deletion, Check runs, Check suites, Pull requests, Pull request
reviews, Pushes
4. Each person who wants to create branches from Barynt adds a
**fine-grained token** under their personal settings → Plugins → GitHub:
_Contents_ read and write, _Pull requests_ and _Checks_ read, for the
team's repositories. It's only ever sent to `api.github.com`.
([barynt-plugin-store](https://github.com/barynt-dev/barynt-plugin-store)).
On its page, the card **GitHub App** creates the instance's app on
GitHub in one step (or set `GITHUB_APP_*` for one you made yourself).
Then release it for the workspace.
2. **Workspace settings → Plugins → GitHub → Connect GitHub**: sign in at
GitHub, install the app on an account and pick its repositories. A
workspace's connection counts for every project; a project can connect
an account of its own too.
3. **Project settings → Plugins → GitHub**: confirm what it may do, switch
it on, and tick the **repositories** the project works with — Barynt
lists what the connected accounts share.

**Your own token (optional):** a fine-grained token under your personal
settings → Plugins → GitHub (_Contents_ read and write, _Pull requests_ and
_Checks_ read) can put your GitHub login into branch names (`{user}`) and
shows who reviewed. Without it, the plugin works through the connection — on the
ticked repositories only. It's only ever sent to `api.github.com`.

**Without the app:** type the repositories (`owner/repo`, one per line),
add the webhook from the card **Webhooks from other services** in GitHub
(`application/json`, the secret, and the events _Branch or tag creation_,
_Branch or tag deletion_, _Check runs_, _Check suites_, _Pull requests_,
_Pull request reviews_, _Pushes_), and everyone keeps a token.

## Rules

![The webhook and its rules](preview-3.webp)

Under the webhook in the plugin's settings, pick a status for each rule,
or leave it off:
In the project's plugin settings, pick a status for each rule, or leave it
off — saved with the page's **Save** button:

**Pull requests**, along their way:

| Rule | e.g. |
| -------------------------- | ------------- |
| Opened as a draft | _In Progress_ |
| Opened or ready for review | _In Review_ |
| Review requested | _In Review_ |
| Approved | _Ready_ |
| Changes requested | _In Progress_ |
| Merged | _Done_ |
| Closed without merging | _Todo_ |

**Target branches** limits them to pull requests into these branches —
`main, release/*`; empty: all. So a merge into `develop` doesn't mark an
issue _Done_.

- **When a pull request is opened** — e.g. _In Review_
- **When a pull request is merged** — e.g. _Done_
**Checks & Actions:** _Checks failed on the branch_ — any check on the
issue's branch, GitHub Actions included, e.g. _Blocked_.

Barynt sets it as "GitHub (App)" and comments why — only for an issue the
pull request works on: its key in the branch's name, or after _Fixes_,
_Closes_ or _Resolves_ in the title or description.
**Deployments:** _Deployed to a test environment_ (staging, a preview) and
_Deployed to production_ — as GitHub marks the environment, e.g. _On
Staging_ and _Live_. A preview of the issue's branch names it; for a
deployment of `main`, Barynt asks GitHub which commits came since the
environment's deployment before and moves the issues they close (a merged
pull request, "Fixes WEB-42").

**Link the issues in the pull request** (switch under _Pull requests_):
once a pull request works on issues, Barynt comments on it with a link to
each — once, as the GitHub App.

Barynt sets the status as "GitHub (App)" and comments why — only for an
issue the pull request (or the branch) works on: its key in the branch's
name, or after _Fixes_, _Closes_ or _Resolves_ in the title or
description. An issue already there stays as it is.

## In the issue

Expand All @@ -67,34 +106,60 @@ _Closes_ or _Resolves_ in the title or description.
The **Development** panel in the issue's sidebar shows its branch (copy
the name, open it on GitHub), its pull requests with their state, checks,
size and — with your own GitHub token — who reviewed, and the commits that
name it (five, then "Show all"). A click on a card's pull request row opens
the issue there.
name it (five, then "Show all"), and where it was deployed. With a
workflow set, **Run workflow** starts it on the branch. A click on a card's
pull request row opens the issue there.

## Actions

In an issue's menu ("…"), a card's quick actions and the command palette:

- **Create branch** — in the project's first repository, from its default
branch, named after the pattern in the settings (`{user}/{key}-{title}`
by default: `ada/web-42-keep-the-cookie`); a taken name gets `-2`. With
your own token, so you're its author on GitHub. As the project set it,
- **Create branch** — in one of the project's repositories (with several it
asks which; the first is the default), from its default branch, named
after the pattern in the settings (`{type}/{key}-{title}` by default:
`feature/web-42-keep-the-cookie`); a taken name gets `-2`. With
your own token if you keep one, else through the connection. As the
project set it,
the issue is then assigned to you and moved to a status. The panel has
the same button while the issue has no branch.
- **Copy branch name** — the issue's branch, or the name it would get.
- **Open pull request** — its open pull request, or GitHub's page to open
one for its branch, the title starting with the issue's key.
- **Run workflow** — the workflow set under _GitHub Actions_ (a file in
`.github/workflows`, with `on: workflow_dispatch`), on the issue's
branch.

Commenting, running workflows and deployments need the GitHub App's
newer permissions (_Pull requests_ and _Actions_: write, _Deployments_:
read). An app made before asks for them in **Admin → Plugins**; each
installation's owner then accepts them once on GitHub.

## Settings

Under **Project settings → Plugins → GitHub**: the repositories (`owner/repo`,
one per line), the branch name's pattern, whether creating a branch assigns
Under **Project settings → Plugins → GitHub**: the GitHub accounts
connected, the repositories (ticked from what they share), the branch
name's pattern, whether creating a branch assigns
the issue, and which status it gets then.

Below the form, **Repositories on GitHub** checks each saved repository
with your token: _Ready_, _Read only_ (no branches), _Not found for your
token_, or that GitHub doesn't accept the token — and shows what a
branch's name will look like. When the webhook last called is on Barynt's
card below it.
The branch name's pattern is free to type, or picked from **Suggestions**:

| Suggestion | Pattern | Example |
| ----------------------------- | ---------------------- | -------------------------------- |
| Type, key and title (default) | `{type}/{key}-{title}` | `feature/web-42-keep-the-cookie` |
| Key and title | `{key}-{title}` | `web-42-keep-the-cookie` |
| Login, key and title | `{user}/{key}-{title}` | `ada/web-42-keep-the-cookie` |
| Type and key | `{type}/{key}` | `feature/web-42` |
| Key only | `{key}` | `web-42` |

`{type}` is `bugfix` for a bug, `chore` for a chore and `feature` for
everything else — the prefixes of the [Conventional Branch](https://conventional-branch.github.io/)
spec. `<type>/<ticket>-<description>` is the most common convention, and
keeps branches sorted by kind. Whatever the pattern, keep `{key}`: it's how
Barynt finds the issue.

The repositories come from the GitHub accounts connected in the workspace
or the project; one that can't be reached any more is marked there. When
the webhook last called is on Barynt's card below the form.

## How issues are found

Expand All @@ -119,6 +184,18 @@ bun run lint && bun run typecheck
In your local Barynt's `.env`: `PLUGIN_DEV_DIRS="/path/to/barynt-plugin-github"`,
then install it under **Admin → Plugins → Sources → Local plugins**.

### Languages

English is the base, German is translated; anything missing stays English.

- What the code draws (panel, settings check, actions' messages):
`src/i18n.ts`, read with `t("key", { name })`.
- What Barynt shows from the manifest (settings, actions, the panel's title,
the webhook's rules, the previews): `manifest.json` → `locales.de`, by id.
- The store page: `about.de.md`, and `locales.de.description`.

A new language is another block in both, plus its `about.<lang>.md`.

## Release

`bun run release` builds, copies the files to `release/<version>/`, prints
Expand Down
12 changes: 6 additions & 6 deletions about.de.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bring deine GitHub-Arbeit an die Issues, um die es geht. Barynt liest die Webhooks von GitHub selbst — **du brauchst keinen eigenen Server** — und dieses Plugin zeigt, was darin steht.
Bring deine GitHub-Arbeit an die Issues, um die es geht. Barynt verbindet sich über eine eigene GitHub App und liest, was GitHub meldet. **Du brauchst keinen eigenen Server**, und dieses Plugin zeigt es an.

## Auf dem Board

Expand All @@ -14,16 +14,16 @@ Das Panel **Development** zeigt:

## Regeln

Wähle einen Status für _Pull Request geöffnet_ und _Pull Request gemergt_ — etwa _In Review_ und _Done_. Barynt setzt ihn als „GitHub (App)“ und kommentiert, warum, aber nur bei Issues, an denen der Pull Request wirklich arbeitet: der Schlüssel im Branch-Namen oder nach _Fixes_, _Closes_ oder _Resolves_.
Wähle einen Status für jeden Schritt eines Pull Requests — Entwurf, geöffnet, Review angefragt, freigegeben, Änderungen gewünscht, gemergt, geschlossen — und für fehlgeschlagene Checks (auch GitHub Actions); beschränke sie auf Ziel-Branches wie `main`. Barynt setzt ihn als „GitHub (App)“ und kommentiert, warum, aber nur bei Issues, an denen der Pull Request wirklich arbeitet: der Schlüssel im Branch-Namen oder nach _Fixes_, _Closes_ oder _Resolves_.

## Aktionen

Im Menü eines Issues, auf einer Karte oder in der Befehlspalette: **Branch erstellen** (benannt nach dem Muster deines Projekts, z. B. `ada/web-42-fix-login`), **Branch-Namen kopieren** und **Pull Request öffnen**.
Im Menü eines Issues, auf einer Karte oder in der Befehlspalette: **Branch erstellen** (benannt nach dem Muster deines Projekts, z. B. `feature/web-42-fix-login`), **Branch-Namen kopieren**, **Pull Request öffnen** und **Workflow starten** (GitHub Actions, auf dem Branch des Issues). Auch Deployments bewegen Issues: auf eine Testumgebung oder in Produktion. Und Barynt verlinkt die Issues in ihrem Pull Request.

## Einrichten

1. Schalte das Plugin im Projekt ein.
2. Trag den angezeigten Webhook in deinem Repository oder deiner Organisation ein.
3. Optional: Jede Person hinterlegt ein Fine-grained Token, um Branches zu erstellen und Reviewer zu sehen.
1. Verbinde GitHub einmal für den Workspace (oder ein Projekt): Installiere die GitHub App von Barynt auf deiner Organisation und wähle die Repositories aus.
2. Schalte das Plugin im Projekt ein und hake die Repositories an, mit denen es arbeitet. Einen Webhook musst du nicht anlegen.
3. Optional: Jede Person hinterlegt ein Fine-grained-Token, damit ihr Login im Branch-Namen steht und sie die Reviewer sieht.

Tokens werden verschlüsselt gespeichert und nur an `api.github.com` geschickt.
12 changes: 6 additions & 6 deletions about.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bring your GitHub work to the issues it's about. Barynt reads GitHub's webhooks itself — **there's no server to run** — and this plugin shows what they say.
Bring your GitHub work to the issues it's about. Barynt connects through its own GitHub App and reads what GitHub reports — **there's no server to run** — and this plugin shows it.

## On the board

Expand All @@ -14,16 +14,16 @@ The **Development** panel shows:

## Rules

Pick a status for _a pull request is opened_ and _a pull request is merged_ — say _In Review_ and _Done_. Barynt sets it as "GitHub (App)" and comments why, but only for issues the pull request really works on: the key in the branch name, or after _Fixes_, _Closes_ or _Resolves_.
Pick a status for each step of a pull request — draft, opened, review requested, approved, changes requested, merged, closed — and for failing checks (GitHub Actions too); limit them to target branches like `main`. Barynt sets it as "GitHub (App)" and comments why, but only for issues the pull request really works on: the key in the branch name, or after _Fixes_, _Closes_ or _Resolves_.

## Actions

From an issue's menu, a card or the command palette: **Create branch** (named after your project's pattern, e.g. `ada/web-42-fix-login`), **Copy branch name** and **Open pull request**.
From an issue's menu, a card or the command palette: **Create branch** (named after your project's pattern, e.g. `feature/web-42-fix-login`), **Copy branch name**, **Open pull request** and **Run workflow** (GitHub Actions, on the issue's branch). Deployments move issues too: to a test environment or to production. And Barynt links the issues in their pull request.

## Setup

1. Switch the plugin on in the project.
2. Add the webhook it shows to your repository or organization.
3. Optional: each person adds a fine-grained token, to create branches and see reviewers.
1. Connect GitHub once for the workspace (or a project): install Barynt's GitHub App on your organization and pick its repositories.
2. Switch the plugin on in the project and tick the repositories it works with. No webhook to add.
3. Optional: each person adds a fine-grained token, for their login in branch names and to see reviewers.

Tokens are stored encrypted and only ever sent to `api.github.com`.
5 changes: 5 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading