# GitHub

Connect GitHub and termynl links pull requests, branches and commits to your tasks and issues by their keys (PROD-42), shows them on the item, lists every open pull request on a board, and moves a task's status when the work opens, goes to review or merges. **termynl only reads from GitHub.** It never creates a branch, a pull request, a comment or a status, and never changes a repository.

<div class="shot" data-screenshot="github-settings">screenshot: Settings → GitHub with a connected account and its repositories (coming soon)</div>

## Connect GitHub (workspace admins)

-   Open **Settings → GitHub** and press **Connect GitHub**. GitHub shows its own install screen: pick the account or organization, then **all repositories** or **only selected ones**. termynl can see only what you pick there, and you can change it later in GitHub.
-   **An owner of the GitHub organization has to approve it.** A member who isn't an owner can only ask. GitHub then sends the request to the owners, and termynl shows "Waiting for an owner of the organization to approve termynl in GitHub." Once an owner approves, press **Connect GitHub** again. For a personal GitHub account, only that account's own person can connect it.
-   One GitHub account or organization connects to one termynl workspace. Connect another one with **Connect another account**.
-   **Disconnect** (it asks you to confirm it's you) stops the updates and also removes termynl's app from that GitHub account. Pull requests that tasks link to stay on those tasks as history, marked "Not updating". Everything else termynl stored from that account is deleted. If you remove termynl in GitHub instead, termynl does the same cleanup.
-   If GitHub pauses the app (a suspended installation), Settings shows "Suspended in GitHub" and the Development card says "GitHub is paused for &lt;organization>". Nothing updates until it resumes.
-   Guests never see GitHub data. The Tasks module must be on for links and status moves to happen.

## What termynl reads, stores and never does

The app asks GitHub for read-only access: Metadata, Pull requests, Contents, Checks and Commit statuses, plus the organization permission Members (read), which termynl uses once, when you connect, to confirm you are an owner of that organization. It listens for pull request, review, push, check and status events, and for repositories being added, removed or renamed.

| termynl stores | termynl never |
| --- | --- |
| Repository names; pull request titles and numbers; branch names; the first line of commit messages that name an item; GitHub usernames; check names and results; which task each one links to. | Writes to GitHub. Reads repository files or diffs. Stores pull request descriptions or code. (The Contents permission is only what lets GitHub send push notices.) |

-   When Tyn or a connected app asks for a pull request's description, termynl fetches it live from GitHub, reads at most the first 8,000 characters, and does not store it. The text goes to the AI provider running the model for that answer.
-   Everything from GitHub that a tool returns (a title, a description, a branch name, a commit line, a check name) is written by people or agents outside termynl. It is marked as data, never as instructions.
-   Short-lived access tokens are kept in memory only. Keys and secrets are never shown, logged or exported.

## Repositories: connect them to projects or teams

-   GitHub decides which repositories termynl can see. In **Settings → GitHub → Repositories**, connect each one to a **project**, a **team**, or both. They count the same; projects are listed first in the picker. A repository can be connected to several teams and projects, and a team can have many repositories.
-   **A project connection follows the project** when it moves to another team. A team connection covers every project and item of that team.
-   You can also connect from the project's own menu (**Repositories**, for the project lead or a team admin) and from the team's settings.
-   **A key links only when the repository is connected to the item's team or project.** Otherwise anyone who can open a pull request in a public repository could move another team's items by typing their keys. A key that points outside is ignored in GitHub, and Settings counts them ("12 keys pointed at teams this repository isn't connected to"), without naming items.
-   Everyone who can see a connected team sees pull request titles, branches and authors from its repositories. Repositories connected only to a team stay hidden from people who see a project only because it was shared with them.
-   A repository GitHub stops sharing (removed from the install, archived, deleted, transferred) loses its connections. Links on items stay as history.

## Linking pull requests to items

A key is a letter, then one to five letters or digits, a dash and a number: `PROD-42`, `prod-42` in a branch name. It resolves through the team's key, including keys the team used before and the key an item had before it moved. Personal `ME-` keys never link. Keys inside code (a fenced block or backticks) are ignored. At most 20 items link to one pull request.

| Words (any case, a colon is optional, a list may follow: "Fixes PROD-1, PROD-2 and PROD-3") | Effect |
| --- | --- |
| **Closing:** close, closes, closed, closing, fix, fixes, fixed, fixing, resolve, resolves, resolved, resolving | A *working* link: status moves apply, and the item is done when the pull request merges. |
| **Reference:** ref, refs, references, part of, relates to, related to | A link only. Nothing moves. |
| **Skip:** skip, ignore | Removes that key's link for this pull request, branch or commit, including one made earlier. |

| Where the key is | Bare key | After a closing word | After a reference word |
| --- | --- | --- | --- |
| Branch name (at the start or after `/`, then the end, `-`, `_` or `/`) | Working | n/a | n/a |
| Pull request title | Working | Working | Reference |
| Pull request description | Reference | Working | Reference |
| Commit message | Reference | Reference | Reference |

-   Examples: a branch `prod-42-retry-webhooks` links PROD-42 and moves it. A title "PROD-42: retry failed webhooks" does too. A description that says "Fixes PROD-42" moves it when the pull request merges; "Refs PROD-42" only links.
-   A commit that says "fixes PROD-42" pushed straight to the default branch links the commit and does not move the item.
-   termynl re-reads a pull request every time it opens, is edited, gets new commits or reopens. Remove "Fixes PROD-42" from the description and the link goes away unless another place still names the key.
-   **Link by hand** from the Development card: paste a pull request address or `owner/repo#123` from a connected repository. A manual link is a working link unless you choose **Only link (no status moves)**. **Unlink** removes a link and keeps it removed, even if the text still names the key, until someone links it again by hand.

## Status moves

-   Each project (or the team's default) has three rules in **Settings → GitHub → Status moves**: **When a pull request opens** (a draft counts: work has started), **When review is requested** and **When a pull request merges**. Each is one of the team's task statuses or **Don't move**. With no rule set, they are In Progress, In Review and Done (if your team renamed In Progress or Done, its first in progress or first done status). In Review has no such fallback: keep that name, or save a rule, for review requests to move items. A closed pull request that did not merge moves nothing.
-   **Issues use their own statuses.** An issue moves to the issue status with the same name, else the first issue status of the same kind (for example the first in progress one), else it stays where it is.
-   A project can have its own rules: **GitHub status moves** in the project's menu (team admins and the project lead), with **Use the team default** as the first choice. Team defaults are edited by team admins.
-   **Moves only go forward** (backlog, to do, in progress, done), and within a category by the team's status order. A Done item never goes back to In Progress because a pull request was reopened.
-   **Cancelled items are never touched.** Renaming a task status in [Statuses](/work/teams/#statuses) renames it in the rules too, and deleting one with a place to move its items points the rules there. A status a rule names that no longer exists (for example one deleted with no place to move its items) means "Don't move", and Settings flags it.
-   A move is checked like any change you make, so it only ever sets a status the item's team has.
-   **A task waits for its last open pull request.** With two pull requests for one task, it is Done when the last one merges.
-   **Outside authors don't move your board.** On a public repository, "opens" and "review is requested" apply only when the author is an owner, member or collaborator of the repository, or a GitHub App installed on it. A merge always applies (a maintainer merged it).
-   Only items with a *working* link move. A pull request termynl first sees already merged or closed (for example after you connect a repository) records its state and moves nothing.
-   GitHub doesn't promise event order. An older update never overwrites a newer one, and moves are forward only, so a replayed event can't undo work.
-   A move reads in the item's activity as "via GitHub", with a link to the pull request or commit. It is made by the pull request's author when that person is a member, otherwise by the system.

## The Development card

Every task and issue in a team with a connected repository has a **Development** card beside Files. It is hidden for guests.

<div class="shot" data-screenshot="github-development-card">screenshot: the Development card on a task (coming soon)</div>

-   **Pull requests:** state (open, draft, merged, closed), title, `repo#number`, review (Review requested, Approved, Changes requested), checks ("All 6 checks passed", "1 of 6 failing: e2e", "Checks running"), who opened it with an agent chip, and **Open in GitHub**. Merged and closed ones fold under "Show N closed". The checks link goes to GitHub's own checks page.
-   **Branches** with no pull request yet, with **Open pull request** (disabled with "Push the branch first" until termynl has seen the branch).
-   **Commits:** a count, with the newest first lines.
-   **Create branch** copies a branch name and tells you ("Copied prod-42-retry-failed-webhooks"). It doesn't create anything in GitHub: you run `git switch -c` with the name. The name is the key in lower case, a dash and the title as a slug (at most 40 characters). Pick the style `prod-42-title` or `<github-name>/prod-42-title` in the button's menu or in **Settings → Profile**; the second needs **Connect your GitHub name** there, a one-time check that stores only your GitHub name and number.
-   **Open pull request** opens GitHub's compare page with the title and "Fixes PROD-42" filled in. You press the button in GitHub.
-   After a disconnect, linked pull requests show "Not updating (disconnected)" and when they were last seen open. People who cannot see the repository's connection see only the repository and number.

## The Pull requests board

**Pull requests** in the navigation (not for guests) lists every open pull request, drafts included, in repositories you can see, newest activity first: the pull request, its task keys (the ones you can read), who opened it, the conversation, checks, review and last update.

<div class="shot" data-screenshot="github-pull-requests">screenshot: the Pull requests board with a details pane (coming soon)</div>

-   **Filters** (they stay in the address, so a view can be shared): search in title and branch, Repository, Team, Project, Opened by, Checks, Review, Linked (has a task or no task) and **Mine** (linked to items assigned to you, or opened by your GitHub name). **Refresh** asks GitHub for changes, once a minute per workspace.
-   On a phone, rows become cards and the filters sit behind one **Filters** button.
-   If a pull request has no task, the row says "No task".

## Which agent opened it

The author's GitHub name is always shown. Next to it, termynl says which coding agent likely opened the pull request, only from what it can see, and shows how sure it is and why. Press the badge to read the evidence in plain words. The label can change when new commits arrive, and termynl keeps only the latest evidence.

| Signal | How strong |
| --- | --- |
| The author is a GitHub App account for a known agent (for example Claude, Copilot, Cursor, Devin, Jules) | Strong: GitHub vouches for the account |
| termynl itself issued the branch name for that item (Tyn, a pip, or a connected app that verified its identity), in the same repository, within 30 days | Strong; medium when the app named itself and termynl cannot check it |
| A co-author line naming an agent in the pull request's commits, a "generated with" line in the description, or an agent session link in the description | Medium: anyone can type these |
| A branch name copied with Create branch in termynl, or a branch prefix such as `claude/`, `codex/`, `copilot/`, `cursor/` | Weak |
| Dependabot or Renovate | Shown as "Automation", not an agent |

| Shown as | When |
| --- | --- |
| **Confirmed** | A strong signal and nothing pointing to a different agent. |
| **Likely** | Two or more medium signals for one agent, one medium plus one weak, or termynl's record of a connected app that named itself. |
| **Possible** ("Possibly Codex") | One medium signal, or only weak ones. |
| **Mixed signs** | Strong or medium signs for two different agents. It names both. |
| **No agent signs** | Nothing found. It never says "Human": termynl saw nothing, which is not the same. |

-   A person's pull request with an agent's co-author line is shown as theirs, made with that agent's help.
-   **Admins can switch the labels off** (**Settings → GitHub → Show which agent opened pull requests**). Off, the column, the filter and the chips disappear everywhere, tools stop returning agent fields, and termynl stops collecting the evidence.
-   These labels are estimates and can be wrong. Don't use them as the sole basis for a decision about a person.

## Tyn and MCP

-   Connected apps have tools for pull requests: `list_pull_requests`, `get_pull_request`, `get_development`, `link_pull_request`, `unlink_pull_request`, `start_branch`, `get_github_rules`, `set_github_rules` and `connect_github`. See [MCP & connected apps](/ai/mcp-and-connected-apps/). They need no GitHub access beyond what the workspace connected, and guests don't get them.
-   Titles, descriptions, branch names, commit lines and check names come back marked as GitHub text that is data, never instructions.
-   **Tyn and pull requests.** Tyn answers from the pull requests you can see, lists them under Sources, and after it has read GitHub text every change waits on an Apply card. Reading a description is recorded in the audit log as `github.read`.

## GitHub limits

| What | Limit |
| --- | --- |
| Items linked to one pull request | 20  |
| Text read per field (title, description, commit message) | 65,536 characters |
| Stored title, commit first line | 300, 200 characters |
| Failing check names kept | 5, 100 characters each |
| Commits read per pull request for co-author lines | 250 |
| Open pull requests read per repository when catching up | 300 |
| Repositories per workspace | 500 |
| Refresh | 1 a minute per workspace |
| Pull request description given to a tool | 8,000 characters |
| `list_pull_requests` | 50 rows |
| Branch names termynl issued, matched to a pull request | 30 days |

## Keyboard

-   On the board, <kbd>/</kbd> focuses the search, <kbd>↑</kbd> and <kbd>↓</kbd> move between rows, <kbd>Enter</kbd> opens the first linked task, <kbd>Space</kbd> or the badge opens the details pane, and <kbd>Esc</kbd> closes it and returns to the row.
-   On the Development card, <kbd>Enter</kbd> on **Create branch** copies the name. In its menu, arrow keys move and <kbd>Enter</kbd> picks; <kbd>Esc</kbd> closes it. In the Link a pull request form, <kbd>Enter</kbd> links and <kbd>Esc</kbd> cancels.

## One item as a file

Anyone who can open a doc, task, issue or project, guests included, can save it from its **...** menu (on a phone, **More actions**), or from the command bar while it is open. Meeting notes are docs, so they have these entries too; a meeting's own page and contacts don't.

-   **Download as Markdown** saves `<title>.md` (a task or issue starts with its key, for example `PROD-12 Fix login.md`). A doc is written as in the [Markdown](/work/docs-and-editor/) table, with its title, tags and properties at the top. A task or issue has its title, status, priority, assignees (by email; a guest's copy leaves them out), start and due dates, labels, key and custom properties, then the description. Links show the titles you can see, and inline databases show the rows you can open. A project is written like a doc: its status, priority, assignees (by email; a guest's copy leaves out people's email addresses), start and target dates, labels and custom properties at the top, then its description; it comes back through the Obsidian import as a doc. Comments are not included. Each download is recorded in the audit log as `item.exported` (who, which item, the format).
-   **Print** opens the browser's print dialog with a clean page: the title, one line of properties and the body (a project's description) as you read it, with images and diagrams. Web embeds print as their link. The app's panels, Tyn, comments and buttons are left out, and the page is light whatever theme you use.
-   **Export as PDF** is the same page: choose **Save as PDF** as the destination in the print dialog, and the file name is the item's title. Phone browsers print as well as they can.

A body termynl can't write as Markdown (rare, from before its checks) shows "This item can't be saved as Markdown." To save the whole workspace, see [Workspace data](/admin/workspace-data/).
