Commit Graph
25 Commits
Author SHA1 Message Date
Salman Chishti 0b265950d7 fix: prevent duplicate orchestration ID in user-agent
Add idempotency check to getUserAgentWithOrchestrationId — if the
tag is already present in baseUserAgent, return it unchanged. This
prevents doubling when both the exported helper and getOctokitOptions
run for the same client.
2026-04-08 16:49:32 +00:00
Salman Chishti 2c759f2535 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
2026-04-07 16:16:11 +00:00
Lokesh Gopu 27ff53d472 ESM-only with updated @octokit dependencies 2026-01-27 15:35:32 -05:00
Maxime Aubanel c919bf0a17 Add RUN_ATTEMPT to Github context 2023-11-28 16:32:10 +01:00
Tatyana Kostromskaya 9c84b6a359 Update dependencies in github package (#1553)
* Update octokit package

* define type for function

* fix linter

* Update github package to latest

* Update RELEASES.md
2023-10-10 16:04:42 +02:00
Luke Tomlinson 1d4ff75d1b Export default octokit options (#1188) 2022-09-30 12:17:19 -04:00
Luke Tomlinson 9521a5164d Add additionalPlugins parameter to getOctokit method (#1181)
* Add additionalPlugins parameter to getOctokit method

* Simplify getOctokit
2022-09-22 16:43:54 -04:00
Thomas Boop f3c9bdf29e Include urls in @actions/github context (#794)
* include urls in github context

* fix format
2021-05-07 14:05:08 -04:00
Thomas Boop cde1a0af52 Set main as the default branch (#527)
* set main as the default branch

* revert change to tool-cache default branch

* use versions where applicable
2020-07-21 11:33:05 -04:00
839 57eb54d20e Add execution state information (#499)
* Add execution state information (#371)

* Type conformance to REST API (#371)

* Changed to get the job name (#371)
2020-06-25 23:25:13 -04:00
Ryo Ota b9f6a0b210 Add type of context.payload.comment (#375) 2020-06-03 11:54:01 -04:00
Thomas Boop 1bc87e2271 @actions/github v3 using Octokit/core (#453)
* Rebuild to use @Octokit/Core
2020-06-02 21:39:46 -04:00
eric sciple bf63cf2d7f set base URL for GHES (#449) 2020-05-07 09:41:18 -04:00
Ryo Ota ad36485bc1 Use import {Octokit} (#332)
* Use import {Octokit}

* Update @octokit/rest to 16.43.1
2020-02-18 15:43:07 -05:00
eric sciple 99f600efa9 check proxy bypass before setting proxy agent (#320) 2020-01-23 14:35:41 -05:00
Thomas Boop 1aa072575d Correctly pull issue number for pull request review events (#311) 2020-01-21 10:44:38 -05:00
eric sciple 0f1f686e9d octokit client should follow proxy settings (#314) 2020-01-18 14:28:37 -05:00
Ross Brodbeck b5ac8545fb Update octokit graphql type dependencies (#228)
* Update GraphQL support in base API
2019-12-06 07:52:04 -05:00
Jonathan Clem 54c1328419 Accept Octokit.Options in the GitHub constructor 2019-09-05 09:54:27 -04:00
Danny McCormick a42c9986ce Use readFileSync instead of require (#101)
* Use readFileSync instead of require

* error handling
2019-08-30 13:02:45 -04:00
Danny McCormick e32a1c3399 Fix exports 2019-08-05 08:53:51 -04:00
Danny McCormick f4f31db77e Correct github interfaces 2019-08-02 15:25:51 -04:00
Danny McCormick 971a449c2e Add github package (#32)
* Add github package

* Docs

* Feedback

* Accidentally added extra

* Allow octokit to be extended

* Respond to feedback

* Feedback
2019-07-29 13:09:32 -04:00
Jonathan Clem 32ba809bdf Rename packages/github to packages/toolkit 2019-04-19 15:52:23 -04:00
Jonathan Clem ecd9a32a56 Add working Jest & TypeScript config
- Jest now uses ts-jest for transforms
- TypeScript compilation via `lerna run tsc`
2019-04-19 15:15:34 -04:00