﻿# GH Archive: use event logs without confusing them with source code

GH Archive records public GitHub events, not complete repository snapshots. Keep event type, payload generation and identity changes explicit.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-gharchive-event-log-vs-code/
Language: en

GH Archive preserves public GitHub activity for analysis. The [project site](https://www.gharchive.org/) is useful for event-history studies, including how repositories and contributors interact. Its observations are event records, not independently complete copies of the codebase or a complete account of every private and public development action.

## Choose an event type before defining a row

The [GitHub event documentation](https://docs.github.com/en/rest/using-the-rest-api/github-event-types) describes type-specific properties and triggers. A push, issue action and repository event do not represent equivalent units of work. Preserve type, identifier, creation time, actor and repository information with the payload. Counting all rows as commits or completed tasks would combine incompatible actions into a misleading activity measure.

## Record archive intervals and payload assumptions

The [archive implementation](https://github.com/igrigorik/gharchive.org) documents the collection project. Save selected time partitions and file identity. Payload schemas and platform behavior evolve, so inspect the actual period's fields rather than assuming the current event reference exactly matches historical records. A missing nested value can mean a schema difference, not necessarily the absence of the underlying development activity.

## Keep repository identity through names and transfers

Names can change and repositories can move or disappear. Retain stable identifiers where available alongside observed names and URLs. A current repository lookup is not a historical snapshot of its state at event time. If source files are needed, identify a commit or separate archival artifact instead of treating event text as a substitute for code content.

## Separate activity labels from quality claims

An editorial development-study audit should inspect bots, repeated notifications and bulk actions before interpreting engagement. More events do not automatically mean better software or more independent human contributors. Temporal targets also need a cutoff: later issue resolution or repository status should not become an input when predicting an earlier event outcome.

## Preserve event-to-artifact joins

Document archive interval, schema handling, actor filtering and repository mappings. [Provenance through conversion](/journal/document-markdown-json-provenance/) helps retain source evidence when event text becomes a corpus. [Document-level grouping](/journal/document-level-data-split-leakage/) supplies the analogous principle for related issues and repository records. GH Archive is useful for public activity questions; evaluating source correctness or long-term project quality requires separately defined artifacts and labels rather than an unexplained event-count proxy.
