From 49ddd080d14c1719dac3621f5be4f5fabba5ee6b Mon Sep 17 00:00:00 2001 From: Mehdi ABAAKOUK Date: Sat, 15 Aug 2026 22:18:03 +0200 Subject: [PATCH] fix(api): point the Activity Log sidebar entry at its real page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OpenAPI spec renamed the `eventlogs` tag to `activity_log` in a schema sync, following the product rename of Event Logs to the Activity Log. Every `/api/*` page is generated from those tags by `src/pages/api/[tag].astro`, so the rename deleted `/api/eventlogs` and created `/api/activity-log`. The sidebar entry was never updated, and it renders on every page of the site: a 404 reachable in one click from 225 pages. Point the entry at `/api/activity-log` and rename it to match the product. Redirect the old URL, which has been live long enough to be indexed and bookmarked. `TAG_LABELS` / `TAG_DESCRIPTIONS` are keyed by spec tag, so the rename also orphaned the curated copy for this section — the generated page silently fell back to `humanizeTag` plus a generated sentence. Rekey both entries to `activity_log` rather than deleting them, and widen the description: the Activity Log is a timeline of every Mergify event for a repository, not just pull request activity. Co-Authored-By: Claude Opus 5 (1M context) Change-Id: I400be77552128bab6a8965b4b8bb5dae322f6802 --- public/_redirects | 2 ++ src/components/ApiReference/openapi.ts | 4 ++-- src/content/navItems.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/_redirects b/public/_redirects index 603c19027f..28155f886e 100644 --- a/public/_redirects +++ b/public/_redirects @@ -11,6 +11,8 @@ /api-intro/ /api/usage 301 /api-usage /api/usage 301 /api-usage/ /api/usage 301 +/api/eventlogs /api/activity-log/ 301 +/api/eventlogs/ /api/activity-log/ 301 /examples /integrations 301 /examples/ /integrations 301 /examples/_ /integrations/:splat 301 diff --git a/src/components/ApiReference/openapi.ts b/src/components/ApiReference/openapi.ts index 542860ff1b..772388d2fe 100644 --- a/src/components/ApiReference/openapi.ts +++ b/src/components/ApiReference/openapi.ts @@ -200,7 +200,7 @@ export const TAG_LABELS: Record = { queues: 'Queues', badges: 'Badges', simulator: 'Simulator', - eventlogs: 'Event Logs', + activity_log: 'Activity Log', statistics: 'Statistics', scheduled_freeze: 'Scheduled Freeze', merge_queue: 'Merge Queue', @@ -215,7 +215,7 @@ export const TAG_DESCRIPTIONS: Record = { queues: 'Configure and inspect merge queues for your repositories.', badges: 'Generate status badges for your repositories.', simulator: 'Simulate Mergify behavior on pull requests and configurations.', - eventlogs: 'Retrieve event logs for pull request activity.', + activity_log: 'Retrieve and aggregate the timeline of Mergify events for a repository.', statistics: 'Access merge queue and CI performance statistics.', scheduled_freeze: 'Schedule merge queue freezes for maintenance or release windows.', merge_queue: 'Control merge queue state — pause, unpause, and inspect status.', diff --git a/src/content/navItems.tsx b/src/content/navItems.tsx index 9d787ffb3b..cc51526874 100644 --- a/src/content/navItems.tsx +++ b/src/content/navItems.tsx @@ -335,7 +335,7 @@ const navItems: NavItem[] = [ { title: 'Merge Queue', path: '/api/merge-queue' }, { title: 'Statistics', path: '/api/statistics' }, { title: 'Simulator', path: '/api/simulator' }, - { title: 'Event Logs', path: '/api/eventlogs' }, + { title: 'Activity Log', path: '/api/activity-log' }, { title: 'Badges', path: '/api/badges' }, { title: 'Scheduled Freeze', path: '/api/scheduled-freeze' }, { title: 'CI Insights', path: '/api/ci-insights' },