feat(github): append orchestration ID to user-agent in getOctokitOptions

When ACTIONS_ORCHESTRATION_ID is set, appends
actions_orchestration_id/{sanitizedId} to the user-agent string.

- Add getUserAgentWithOrchestrationId() to internal/utils.ts
- Wire into getOctokitOptions() so all getOctokit() calls include it
- Re-export helper from @actions/github/lib/utils for downstream consumers
- 14 deterministic unit tests covering helper, integration, edge cases
This commit is contained in:
Salman Chishti
2026-04-07 16:16:11 +00:00
committed by GitHub
parent 44d43b5490
commit a8ea745713
4 changed files with 145 additions and 0 deletions
+5
View File
@@ -1,5 +1,10 @@
# @actions/github Releases
### 9.1.0
- Append `actions_orchestration_id` to user-agent when `ACTIONS_ORCHESTRATION_ID` environment variable is set
- Export `getUserAgentWithOrchestrationId` from `@actions/github/lib/utils` for downstream consumers
### 9.0.0
- **Breaking change**: Package is now ESM-only