GitHub exposes a ready-made contribution calendar over GraphQL. GitLab doesn't - its calendar.json endpoint only covers the last 12 months, which doesn't work with a year picker.
Counting events per day
Instead, the server pages through /api/v4/events for the selected year using a read-only token and counts events per UTC day. Each push, merge request or comment counts as one, matching GitLab's own profile.
Fetch the GitHub calendar for the work account
Fetch GitLab events for the same year
Add GitLab counts onto matching days and recompute levels
Levels on one scale
GitHub returns a quartile level per day, GitLab returns nothing. After merging, levels are recomputed relative to the busiest day so both sources share one colour scale.
Read more about the endpoint in the GitLab Events API docs.
Gotcha: gitlab.com keeps events for about three years, so older years only show GitHub.