Salman Chishti
ffeb50bd02
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
a8ea745713
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
b05d26b3fa
ESM-only with updated @octokit dependencies
2026-01-27 15:35:32 -05:00
Maxime Aubanel
faa425440f
Add RUN_ATTEMPT to Github context
2023-11-28 16:32:10 +01:00
Tatyana Kostromskaya
494f12bcd9
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
ac778acad2
Export default octokit options ( #1188 )
2022-09-30 12:17:19 -04:00
Luke Tomlinson
94de2cf6d4
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
2b97eb3192
Include urls in @actions/github context ( #794 )
...
* include urls in github context
* fix format
2021-05-07 14:05:08 -04:00
Thomas Boop
ccad19055e
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
2d47f7b7f6
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
d4340966b7
Add type of context.payload.comment ( #375 )
2020-06-03 11:54:01 -04:00
Thomas Boop
4a89cf72de
@actions/github v3 using Octokit/core ( #453 )
...
* Rebuild to use @Octokit/Core
2020-06-02 21:39:46 -04:00
eric sciple
264e52add6
set base URL for GHES ( #449 )
2020-05-07 09:41:18 -04:00
Ryo Ota
fa03eb4d22
Use import {Octokit} ( #332 )
...
* Use import {Octokit}
* Update @octokit/rest to 16.43.1
2020-02-18 15:43:07 -05:00
eric sciple
432a78c48c
check proxy bypass before setting proxy agent ( #320 )
2020-01-23 14:35:41 -05:00
Thomas Boop
a9175f3986
Correctly pull issue number for pull request review events ( #311 )
2020-01-21 10:44:38 -05:00
eric sciple
ab5bd9d696
octokit client should follow proxy settings ( #314 )
2020-01-18 14:28:37 -05:00
Ross Brodbeck
5fdab2aaf2
Update octokit graphql type dependencies ( #228 )
...
* Update GraphQL support in base API
2019-12-06 07:52:04 -05:00
Jonathan Clem
e533651251
Accept Octokit.Options in the GitHub constructor
2019-09-05 09:54:27 -04:00
Danny McCormick
99d3ad0a64
Use readFileSync instead of require ( #101 )
...
* Use readFileSync instead of require
* error handling
2019-08-30 13:02:45 -04:00
Danny McCormick
fc9958ec6a
Fix exports
2019-08-05 08:53:51 -04:00
Danny McCormick
027a230b99
Correct github interfaces
2019-08-02 15:25:51 -04:00
Danny McCormick
2a2b51f939
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
e3911754c1
Rename packages/github to packages/toolkit
2019-04-19 15:52:23 -04:00
Jonathan Clem
f026c43b81
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