---
id: change/al-go/2392
type: change
title: "#2392 AL-Go Telemetry Enhancements: repository fork and hosting information"
summary: AL-Go telemetry now captures whether a repository is a fork and its GitHub hosting type (GitHub.com, GHEC, or GHES), helping distinguish workflows across different environments without sending server details to telemetry.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:01:56.344Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 5e099940c98618e328a40191a4983f61167187c4
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2392
    title: "microsoft/AL-Go#2392: AL-Go Telemetry Enhancements: repository fork and hosting information"
    date: "2026-10-07"
    commit: 5e099940c98618e328a40191a4983f61167187c4
    t: null
    quote: Add repository and hosting context to AL-Go telemetry so consumers can distinguish workflows running in forks and across GitHub hosting environments.
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2392
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2392
kind: pr
base_branch: main
major: null
merged_at: "2026-10-07T20:16:44Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 5
  additions: 316
  deletions: 0
  al: 2
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/Invoke-AlGoAction.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/TelemetryHelper.psm1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
  - platform
quote: Add repository and hosting context to AL-Go telemetry so consumers can distinguish workflows running in forks and across GitHub hosting environments.
joined_against:
  major: null
  commit: null
---

# #2392 AL-Go Telemetry Enhancements: repository fork and hosting information

> AL-Go telemetry now captures whether a repository is a fork and its GitHub hosting type (GitHub.com, GHEC, or GHES), helping distinguish workflows across different environments without sending server details to telemetry.

[Pull request](https://github.com/microsoft/AL-Go/pull/2392) · merged into `main` on 2026-10-07 by aholstrup1 · 5 files (+316 -0), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New `Get-RepositoryIsFork` function determines fork status from workflow event metadata
- New `Get-GitHubHostingType` function classifies GitHub hosting as GitHub.com, GHEC, or GHES
- Telemetry dimensions include repository and hosting context for Microsoft and partner systems
- Invalid or missing metadata produces warnings and returns 'Unknown' without blocking telemetry
- Added 27 unit tests covering both PowerShell 7 and Windows PowerShell 5 compatibility
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/Invoke-AlGoAction.ps1`: modified, not in the BC? snapshot
- `Actions/TelemetryHelper.psm1`: modified, not in the BC? snapshot

## Context

- Systems: development, platform
- From the description: "Add repository and hosting context to AL-Go telemetry so consumers can distinguish workflows running in forks and across GitHub hosting environments."

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
