mirror of
https://github.com/actions/github-script.git
synced 2026-04-09 07:30:05 +00:00
- Rename context binding from getOctokit to createOctokit to avoid
SyntaxError when users write const { getOctokit } = require(...)
in their scripts (~10 public workflows affected)
- Strip undefined values from user options to prevent clobbering
defaults (e.g. GHES baseUrl)
- Deep-merge retry options alongside request options
- Use nullish coalescing (??) instead of logical OR (||)
- Shallow-copy opts to prevent shared reference mutation
- Add tests: undefined stripping, retry merge, falsy value preservation,
no mutation of defaults
- 32 tests passing, lint clean, dist rebuilt
|
||
|---|---|---|
| .. | ||
| async-function.test.ts | ||
| create-configured-getoctokit.test.ts | ||
| get-retry-options.test.ts | ||
| getoctokit-integration.test.ts | ||