Commit graph

5 commits

Author SHA1 Message Date
Salman Chishti
f9d72d3f45 fix: rename binding to createOctokit and harden option merging
- 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
2026-04-08 21:40:43 +00:00
Salman Chishti
2fe016f5e5 test: add multi-token usage tests for getOctokit 2026-04-07 15:50:16 +00:00
Salman Chishti
cc685dce52 Add docs and tests for getOctokit script context 2026-03-09 04:44:59 -07:00
Jonathan Clem
3037861304
Add ESLint and Prettier 2020-05-18 11:28:54 -04:00
Jonathan Clem
38e3ffe4c6
Add tests for the AsyncFunction 2020-02-27 17:27:49 -05:00