Skip to content
Marvex

Source control

GitHub Integration

The connector most of the platform runs on. Repositories, pull requests, reviews, commits and Actions runs are pulled on a schedule and refreshed in near real time by webhook, then turned into deployment frequency, lead time and cycle-time stages.

Marvex connects to GitHub through the REST API to read repositories, pull requests, reviews, commits, PR timeline events and Actions workflow runs, and turns them into DORA metrics, cycle-time breakdowns and per-team delivery dashboards.

AuthA personal access token with repo and read:org scope, or a GitHub App installation token resolved per organisation. GitHub Enterprise Server is supported by pointing the connector at a custom domain, which Marvex resolves to that host’s /api/v3 base URL. Tokens are stored encrypted at rest and every query is scoped to a single Marvex organisation.
Source code displayed on a monitor in a dark-themed editor

Data Marvex reads

What we pull from GitHub

  • Organisations and repositories the connected token can see, including repository metadata and contributor lists
  • Pull requests with their state, author, base and head branches, timestamps and merge commit SHA
  • Pull request reviews, so review latency and review depth can be measured separately from merge time
  • Pull request timeline events — review requests, reviews, ready-for-review and comparable lifecycle events — used to reconstruct the stages of cycle time
  • Commits on each pull request, plus standalone commits on tracked branches, with commit messages and author identity
  • Commit comparison data (the equivalent of a compare between two SHAs) for line-level additions and deletions behind PR size
  • Repository workflows and workflow runs from GitHub Actions, including conclusion and timing, for WORKFLOW-mode deployment detection
  • Organisation members and repository contributors, used to map git identities to Marvex users and teams
  • Webhook deliveries for pull_request, push, issues, installation and ping events, which trigger an incremental sync of the affected repository

Once connected

What it unlocks

  • Deployment frequency, in either PR_MERGE mode (merge into a configured production branch) or WORKFLOW mode (an Actions run completing)
  • Lead time for changes, decomposed into first response, review, rework and merge
  • Pull request analytics: size, review depth, rework and the "PR worked on" attribution
  • Team and org dashboards built from repository-to-team mapping
  • Change failure rate, once incident data is connected alongside it
  • AI-assisted authorship classification from commit trailers, feeding AI adoption tracking

What Marvex reads, and what it deliberately does not

The GitHub connector is a read integration for delivery analytics, so the shape of what it pulls follows from the metrics it has to produce. Repositories and their contributors give the platform an inventory and an identity map. Pull requests, their reviews, their timeline events and their commits give it every timestamp that cycle time is built from. Workflow runs give it the other possible definition of a deployment. That is the whole list.

Marvex does not read repository file contents as a matter of course, and it does not need write access to your code to compute a single metric on the platform. Commit messages are read — they carry the trailers that identify AI-assisted authorship, and they are part of the commit record — and line counts come from GitHub’s own comparison data rather than from cloning and diffing your source.

This matters when you are getting a token approved. The connector is designed so that a read-scoped token is sufficient for analytics, and the only reason to grant anything broader is if you want Marvex to write back to GitHub, which the analytics path does not do.

  • Repository and organisation metadata, contributors and members
  • Pull requests, reviews, timeline events and commits
  • Actions workflows and workflow runs
  • Commit comparison data for additions and deletions
  • No routine reading of file contents; no write access required for analytics

Two ways to authenticate, and when each is right

A personal access token is the fastest way to get data flowing. It needs repository read access and read:org so the connector can enumerate organisations, repositories and members. The trade-off is that the token belongs to a person: it inherits that person’s repository visibility, and it stops working when they leave or rotate it.

A GitHub App installation is the better long-term arrangement for an organisation of any size. Marvex resolves an installation token scoped to the organisation that owns the repository it is currently syncing, caches it for the duration of that sync, and falls back cleanly when no App is configured. Installation tokens are short-lived by design, are not tied to an individual, and give an org owner a single place to see and revoke what the platform can reach.

GitHub Enterprise Server is supported by configuring a custom domain on the integration; the connector then addresses that host’s /api/v3 base rather than api.github.com. Everything else — the calls, the sync, the metrics — is identical.

  • PAT: fastest to set up, inherits one person’s visibility, needs manual rotation
  • GitHub App: org-scoped, short-lived installation tokens, revocable centrally
  • GitHub Enterprise Server: supported via a custom API domain
  • Tokens are encrypted at rest and never rendered back into the UI

Deployment detection: the one decision to get right

Before Marvex can report deployment frequency or lead time for a GitHub repository, it needs to know what a deployment is in that repository. There are two supported answers and they are configured independently per repo.

PR_MERGE mode records a deployment when a pull request is merged into a branch you have designated as production. This is the right model for trunk-based repositories where merging is effectively releasing, and it has the advantage that the deployment inherits the pull request — its commits, its reviewers, its full timeline — so lead time can be decomposed without any further correlation.

WORKFLOW mode records a deployment when a configured GitHub Actions workflow run completes. This is the right model where merge and release are separate events: code lands on main and ships later, on a train or behind a manual approval. The workflow run carries its own conclusion and timing, and Marvex maps merged pull requests onto the run that shipped them.

Choosing the wrong mode is the most common way to end up with confidently wrong DORA numbers. Both metrics will still be computed, they will just be measuring an event that nobody in the organisation considers a deployment, which is far harder to notice than a metric that is simply missing.

Polling, webhooks and rate limits

A background sync worker pulls from GitHub on a schedule and writes into the platform’s own store, so dashboards read local data rather than calling GitHub on every page load. That keeps pages fast and keeps the platform usable when GitHub is rate-limiting or degraded.

Webhooks close the freshness gap. When a webhook is configured, GitHub delivers pull_request, push, issues, installation and ping events to Marvex, and the connector triggers an incremental sync of just the affected repository or pull request. The practical effect is that a merge shows up in seconds rather than at the next polling cycle. Deliveries are verified against a shared webhook secret before anything is processed.

Rate limiting is handled inside the connector rather than left to fail. Requests go through a rate limiter that tracks the remaining budget for the token in use, and organisations that sync a large estate can supply a pool of tokens so that a single exhausted token does not stall the whole sync. When a limit is genuinely hit, the sync backs off and resumes rather than dropping data on the floor.

  • Scheduled sync writes to local storage; dashboards never call GitHub directly
  • Webhook events trigger incremental, repository-scoped re-sync within seconds
  • Webhook payloads are verified against a shared secret before processing
  • Per-token rate limiting, with optional token pooling for large estates

From GitHub events to the four stages of cycle time

The reason the connector bothers with pull request timeline events, rather than just opened and merged timestamps, is that "cycle time is high" is a useless finding. Timeline events let Marvex reconstruct where the time actually went.

First response (or pickup) is the wait from a pull request being ready to the first substantive review activity on it. Review time is the span of active review. Rework is the time spent on changes pushed in response to review. Merge time is the remaining wait after approval. Each of these has a different owner and a different fix: pickup responds to reviewer routing and working-hours overlap, rework responds to pull request size and clarity of requirements, merge time responds to CI duration and release gates.

The same events power the "PR worked on" attribution, which counts a member as having worked on a pull request when they authored at least one non-merge commit in it. That is deliberately different from being the pull request’s author, and it matters on any team that pairs, hands over work, or opens pull requests on behalf of someone else.

Frequently asked questions

What permissions does the Marvex GitHub integration need?

Marvex needs read access to the repositories you want measured and read:org so it can enumerate organisations, repositories and members. It does not need write access to your code to compute any metric, and it does not routinely read file contents — line counts come from GitHub’s own commit comparison data rather than from cloning your source. You can supply either a personal access token with those scopes or install a GitHub App, in which case Marvex uses a short-lived installation token scoped to the organisation that owns the repository being synced.

Which GitHub data does Marvex actually read?

Marvex reads organisations and repositories, repository contributors and organisation members, pull requests with their state and timestamps, pull request reviews, pull request timeline events, commits on pull requests and on tracked branches, commit comparison data for additions and deletions, and GitHub Actions workflows and workflow runs. If a webhook is configured it also receives pull_request, push, issues, installation and ping events. Everything else in your GitHub account is outside what the connector requests.

How does Marvex detect deployments from GitHub?

Two ways, configured per repository. In PR_MERGE mode a deployment is recorded when a pull request is merged into a branch designated as production, which suits trunk-based repositories where merging is effectively releasing. In WORKFLOW mode a deployment is recorded when a configured GitHub Actions workflow run completes, which suits teams whose release is a separate step after the merge. Because the mode is per repository, one organisation can run both across different services.

Does Marvex work with GitHub Enterprise Server?

Yes. The GitHub connector accepts a custom domain, and when one is set it addresses that host’s /api/v3 base URL instead of api.github.com. The calls, the sync behaviour and the metrics are identical to GitHub.com. The same custom-domain setting applies to the GitHub Copilot connector, which reads Copilot metrics and seat data from the same host.

How quickly does GitHub data appear in Marvex?

Without webhooks, data appears at the next scheduled sync, which is run by a background worker rather than on page load. With a webhook configured, GitHub delivers pull_request, push and issues events to Marvex, which verifies the signature against a shared secret and triggers an incremental sync of just the affected repository or pull request — so a merge is typically reflected within seconds. Dashboards always read from Marvex’s own store, so they stay fast and available even while GitHub is rate-limiting.

What happens when Marvex hits GitHub rate limits?

Requests pass through a rate limiter that tracks the remaining budget for the token in use, so the sync throttles itself before GitHub cuts it off. Organisations syncing a large repository estate can supply a pool of tokens, and the connector selects one that has access to the repository currently being synced, so a single exhausted token does not stall the whole job. Because dashboards read from local storage rather than from GitHub, rate limiting delays new data rather than taking existing metrics offline.

Can Marvex measure a repository that uses GitHub for code and Jira for issues?

Yes, and that is the common configuration. The GitHub connector supplies code, review and deployment data while Jira supplies issues, sprints and boards; the two are joined inside Marvex by team, so a sprint report can carry both story-level progress and the pull request and deployment activity from the same period. You can also mix providers across an estate — some repositories on GitHub, others on GitLab — because deployment mode and provider are configured per repository.

Marvex

Connect GitHub to Marvex

Authorise the GitHub integration and Marvex builds your delivery views from the history already in it. Integration tokens are encrypted at rest and scoped to your organisation.