Skip to content
All docs

GitHub setup

Credential: GitHub App installation

The GitHub connector delivers each article as a pull request by default. BirchSeek writes an MDX or Markdown file with frontmatter matched to your content schema, commits it to a new branch, and opens a PR against your base branch. You review and merge. If you would rather your approval be the last step, switch the connector to commit delivery and each approved article is committed straight to your base branch.

What BirchSeek does in your repo

With pull-request delivery (the default), for each published article:

  1. Reads your base branch’s current commit.
  2. Creates a branch named birchseek/{slug} from it. In this mode BirchSeek never commits to your base branch.
  3. Commits one file at your configured path template - default src/content/blog/{slug}.mdx.
  4. Opens a pull request titled Add article: <article title> from that branch into your base branch.

Publishing is idempotent: if a delivery is retried, BirchSeek finds its existing branch and PR instead of creating duplicates.

Commit delivery

With Delivery: Commit to the base branch, the publish you approve is the consent, and BirchSeek commits the one article file directly to your base branch as birchseek[bot]. Your site rebuilds from that commit the way it rebuilds from any other, so a scheduled article goes live on its date with nobody merging anything.

It still never overwrites a file it did not write. If a file already exists at the article’s path, BirchSeek replaces it only when the newest commit on that file is the commit BirchSeek itself recorded last time - which also means a post someone has edited since is refused, not clobbered. A retried publish whose file is already current writes nothing.

Set Public URL (for example https://example.com/blog/{slug}/) and BirchSeek records it as the article’s live URL the moment the commit lands.

Step 1 - install the GitHub App

There is no token to create, copy, or renew. BirchSeek authenticates as a GitHub App and mints a short-lived credential for each publish.

  1. In onboarding (or Connectors → GitHub later), press Connect GitHub.

  2. GitHub asks which account to install on - your personal account or an organization. Organization installs may need an owner to approve; GitHub tells you inline and BirchSeek shows the request as pending until they do.

  3. Under Repository access, choose Only select repositories and pick your content repo. You can add or remove repositories later from GitHub without touching BirchSeek.

  4. Approve the two permissions BirchSeek asks for:

    • Contents: Read and write - to create the branch and commit the article file.
    • Pull requests: Read and write - to open the PR and track its merge status.

    Metadata: Read is added automatically by GitHub.

Branches, commits and pull requests are made with the app’s own installation credential rather than a human account, so BirchSeek’s activity is always distinguishable from yours in the repository history. Leave the commit author empty and the commit is authored and signed by birchseek[bot]; set a name and email to author it as someone else.

MDX and mdsvex read { and < in prose as code, so a sentence such as “plans start <$10” would break your build. For those file types BirchSeek writes such characters as HTML character references, which render as the original character; code blocks and links are left as written.

If you uninstall the app, suspend it, or remove the repository from the installation, BirchSeek detects it - immediately by webhook, and within six hours by reconciliation either way - marks the connector failing, and emails you. Publishing resumes when you reconnect.

Step 2 - configure the connection

Pick the installation and repository, then configure:

Setting Meaning Default
Repository The owner/repo articles are published to -
Base branch Where PRs target the repo’s default branch
Path template Where the article file lands src/content/blog/{slug}.mdx
Branch template Branch name per article birchseek/{slug}
Frontmatter preset How article fields map to frontmatter keys Astro content collections
File type MDX, Markdown, or Markdown for mdsvex MDX
Delivery Pull request, or commit to the base branch Pull request
Public URL The live URL of a committed article -
Commit author Name/email on the commit empty: birchseek[bot]

Frontmatter mapping

The Astro content collections preset maps article fields to the conventional keys out of the box:

---
title: "How to choose a CRM in 2026"
description: "A buyer's guide built on what the data actually says."
publishDate: "2026-07-17"
tags: [crm, buying-guides]
faq:
  - question: "How many CRM vendors should I evaluate?"
    answer: "Recent buyer research suggests most teams now shortlist two or fewer…"
---

Every key is remappable (publishDate → date, description → summary), and you can pin static frontmatter such as author: "Jane" or layout: post onto every article. If your schema has no faq field, unmap it and the pairs are appended to the body as a rendered FAQ section.

Two more article fields exist for the featured image: image and image_alt. The Astro preset does not map them, so your files do not change. To use them, switch to a custom map and map them to your schema’s keys (for example heroImage). Set Image folder and Image URL to commit the images to your repo in the same publish; see AI images and YouTube embeds.

Two more fields carry the article’s JSON-LD: schema (an object) and schema_json (the same JSON as text, with <, > and & escaped so it is safe inside a <script> element). The preset does not map them. Map one to a key your layout reads, then print it in the page head, for example <script type="application/ld+json" set:html={post.data.schemaJson} />. See Schema markup.

Frontmatter never carries the citations, on any path - the keys above plus the image and schema fields are the complete list. The claim-to-source mapping rides in the body instead.

Your layout renders title as the page’s H1, so the committed body never starts with one: BirchSeek drops the body’s opening # heading whenever title is mapped. If you unmap title, the heading stays, because the body is then the only place the title appears.

The ## Sources block in the committed file

Every source an article relies on is linked in the text, on the words of the claim it backs. Below the closing ---, the body then ends by default with a short ## Sources block. The project setting sources_style picks its form. compact, the default, is one paragraph of up to eight sources: the ones the text does not link first, then the most cited:

## Sources

[Small-team CRM replacement rates](https://example.com/research/crm-replacement-2026) · [RFC 8828](https://datatracker.ietf.org/doc/html/rfc8828). Every other source is linked where the article cites it.

none drops the block when every verified source is linked in the text (and keeps a compact block of only the ones that are not, so no claim loses its citation). references lists every source once, page title linked, in order of first use; claims pairs each verified claim with its page:

## Sources

1. 38% of small teams replace their first CRM within two years — [Small-team CRM replacement rates](https://example.com/research/crm-replacement-2026)

Change it under Settings → Project → Sources list. A change applies to the next publish; to apply it to an article that is already live, open the article and select Republish, which commits the same approved revision again with the new block (see Sources and citations).

It is part of the file you merge, so your content collection renders it like any other section - no schema field to add, and nothing for you to append. BirchSeek composes it once before any connector sees it, which is why every connector publishing to your own site writes the same block. (A syndicated copy to dev.to, Hashnode or Medium carries the same block, and the canonical link back to your page besides. That copy is not covered by the project setting: those three platforms have no citation field of their own, so the body is the only place the evidence can travel.) The block is on by default, and there is no switch for it in the dashboard: it is a project setting called append_sources_section, kept for a repo whose layout prints its own reference list. The only way to change it today is PATCH /v1/projects/{id} carrying the whole settings object, because that request replaces the object rather than merging into it.

Both forms list only claims that came back verified and whose sentence is still in the article, and neither prints a quote. A claim line says one thing: this claim was checked against this source. A reference line says: a verified claim in this article cites this source. Edit a sentence that carries a verified claim and the claim follows a small edit; a sentence you rewrite or remove takes the claim out of verified, and the draft gate waits until you cut the claim or give it a source again.

The pull request body

The PR is where the evidence goes, because it is the one surface only your reviewer reads. Its body opens with a summary line BirchSeek really emits:

- **Verified sources:** 6 claims checked against the page they cite

and then repeats the same numbered list under its own ## Sources heading, with a note under each claim saying how the fetch confirmed it. A blockquote is text the fetch located on that page, matched word for word - with case set aside and every run of characters that are not letters or digits collapsed to a space, so up-to-date matches a page that writes up to date, and a $ or a % is folded away on both sides. Anything else is stated as what it is - the claim’s own wording found on the page, where the writer asserted no excerpt to quote; wording overlap rather than a word-for-word match; a model judging the page to support the claim; or a check whose method was not recorded - so a reviewer never reads an asserted excerpt as a found one. Claims that could not be verified are counted here too, and named as unverified.

That per-claim note is deliberately not in the committed file: only one of the four ways a claim passes proves the quote is on the page as written - and in a second of them there is no quote on the record to print - so the caveat has to travel with the quote. The pull request carries both; the published page carries the link.

If the project has the Sources block switched off, the PR body says so and tells the reviewer that its own list is the only place the claim-to-source mapping appears.

Step 3 - check access

Setup ends with an access check: BirchSeek verifies push access and pull-request reads without creating a branch, file, or pull request. The first write happens on your first approved publish.

Security notes

  • The connector holds no secret of yours. It stores your installation id and the settings above, and no credential at all. There is no long-lived token in our database to leak, because there is no long-lived token.
  • Each publish mints a fresh installation token from GitHub, scoped to your installation and good for one hour. It is used for that publish and never stored.
  • Its write access covers contents and pull requests, in the repositories you picked and no others.
  • You end access from GitHub, not from here: remove the repository from the installation, or uninstall the App. The next publish fails and the connector is marked failing.

Troubleshooting

  • 404 on connect - the installation no longer includes that repository. Open the app’s settings on GitHub and grant it, then re-test.
  • 403 on test - the installation is suspended, or an organization owner has not approved it yet.
  • Connector says “reconnect” - installations moved from personal access tokens to the GitHub App; press Connect GitHub once to re-authorize.
  • PR opened against the wrong branch - the base branch setting defaults to the repo’s default branch; change it in the connector settings.
  • Branch already exists - a previous publish attempt for the same slug; BirchSeek reuses it. If it’s stale, delete the branch and retry.