DCjanus and copilot-swe-agent[bot]
bd23e5fce6
[GitHub] Store accepted token scopes ( #11915 )
...
* feat(github): store token scopes
Assisted-by: Codex <gpt-5.5>
* perf(github): index token scopes
Assisted-by: Codex <gpt-5.5>
* feat(github): persist accepted token scopes
Assisted-by: Codex <gpt-5.5>
* docs(github): clarify OAuth scope capture
Assisted-by: Codex <gpt-5.5>
* docs(github): shorten OAuth scope note
Assisted-by: Codex <gpt-5.5>
* docs(github): clarify default OAuth scopes
Assisted-by: Codex <gpt-5.5>
* docs(github): link OAuth scope discussion
Assisted-by: Codex <gpt-5.5>
* docs(github): mark OAuth scopes as TODO
Assisted-by: Codex <gpt-5.5>
* fix(token-pool): refresh existing token data
Assisted-by: Codex <gpt-5.5>
* fix(token-pool): avoid duplicate revalidated tokens
Assisted-by: Codex:gpt-5.5
* fix(token-pool): remove revalidated tokens from priority queue
Assisted-by: Codex:gpt-5.5
* fix(token-pool): preserve token metadata on re-add
Assisted-by: Codex:gpt-5.5
* chore(github): defer token scopes index
Assisted-by: Codex:gpt-5.5
* fix(github): trim accepted token scopes
Assisted-by: Codex:gpt-5.5
* chore(github): keep token scopes index
Assisted-by: Codex:gpt-5.5
* docs(token-pool): document metadata update semantics
Assisted-by: Codex:gpt-5.5
* chore(github): store token scopes without index
Assisted-by: Codex:gpt-5.5
* chore: rerun ci
* test(token-pool): use mixed scope persistence fixture
Assisted-by: Codex:gpt-5.5
* fix(token-pool): replace invalid tokens on re-add
Keep stale queue references invalid so they can be removed lazily without rebuilding the priority queue.
Assisted-by: Codex:gpt-5.6-sol
* chore: apply Prettier 3.9 formatting
Assisted-by: Codex:gpt-5.6-sol
* chore: retry CI
Assisted-by: Codex:gpt-5.6-sol
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2026-07-20 15:31:01 +02:00
Pierre-Yves Bigourdan
dffd223ef4
Add telemetry when GitHub token is removed ( #11922 )
2026-06-13 19:03:16 +00:00
Pierre-Yves Bigourdan
d3db94d637
Separate GitHub token metrics and debug logging ( #11504 )
2025-11-15 22:25:49 +00:00
Pierre-Yves Bigourdan
2095c5c218
Fix GitHub token pool debug logging and add metrics ( #11500 )
2025-11-15 10:59:51 +00:00
chris48s
c586960ce8
allow calling [github] without auth ( #9427 )
...
* allow calling [github] without auth
* set a default for authType, fix broken tests
2023-08-07 14:51:18 +00:00
dependabot[bot] and chris48s
b9d96755ec
chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 ( #9357 )
...
* chore(deps-dev): bump prettier from 2.8.8 to 3.0.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* reformat all the things (prettier 3)
* update tests to await calls to prettier.format()
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev >
2023-07-10 09:27:51 +00:00
chris48s
b96192eec6
remove redis token persistence backend ( #9065 )
...
* remove redis token persistence backend
* error and exit if redis_url is set
2023-04-15 20:17:35 +01:00
chris48s
091ccfdbcd
migrate token pooling to postgres ( #8922 )
...
* add ability to store token pool in Postgres DB
* update transitive ansi-regex dependencies
2023-02-23 17:18:39 +00:00
chris48s and repo-ranger[bot]
c3d08f7f8b
Send X-GitHub-Api-Version when calling [GitHub] v3 API ( #8669 )
...
* send X-GitHub-Api-Version when calling GitHub v3 API
* TODO: invesitgate
* read baseUrl from config.service.baseUri
* add workflow to check for new GH api releases on schedule
* format config/default.yml to match yaml.dump() format
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-12-31 15:56:04 +00:00
chris48s
0ce98396d7
remove [github] admin routes ( #7105 )
2021-10-05 17:17:26 +01:00
Pierre-Yves B
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
Paul Melnikow
564a9145e9
Remove FsTokenPersistence ( #5671 )
...
Closes #5665
2020-10-10 21:59:52 +00:00
Paul Melnikow
f0b8480280
Inject shieldsSecret into GitHub token admin endpoint ( #5631 )
...
Ref #3393
2020-10-01 23:12:22 -04:00
d8831729cb
Check request origin before sending credentials ( #4729 )
...
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
2020-03-04 20:42:27 +00:00
Paul Melnikow
65afff40d4
Fix up Redis config ( #3705 )
...
- Move to private
- Fix validation
- Don't log the URL
Ref #3332
2019-07-12 19:12:49 -04:00
Paul Melnikow
e2608a6570
Refactor GitHub OAuth credential handling ( #3693 )
...
Continues the work of #3652 .
2019-07-11 18:04:53 -04:00
Paul Melnikow
5ff7beb3bf
Reorganize token pooling code ( #2792 )
...
Ref #2698
2019-01-18 06:18:31 -05:00
Paul Melnikow
18b98a30e3
Reorganize server and service test runner ( #2781 )
...
Ref #2698
2019-01-16 16:30:18 -05:00
Paul Melnikow
048291a024
Fix [GitHub] token handling ( #2730 )
...
Fix #2728
2019-01-11 13:16:44 -05:00
Paul Melnikow
c4efdc8e66
Rewrite and test Github auth logic, separating standard and search quota ( #1205 )
...
The end of an era.
2019-01-10 21:30:23 -05:00
Paul Melnikow
3eac8ebbfb
Rework GitHub acceptor and move to its own module ( #2021 )
...
Continue to merge the work from #1205 .
2018-11-09 15:14:01 -05:00
Paul Melnikow
a16d436602
Optionally persist [Github] tokens in Redis ( #1939 )
...
This is a fairly simple addition of a Redis-backed TokenPersistence. When GithubConstellation is initialized, it will create a FsTokenPersistence or a RedisTokenPersistence based on configuration. Have added tests of the Redis backend as an integration test, and ensured the server starts up correctly when a `REDIS_URL` is configured.
Ref: #1848
2018-08-19 10:27:23 -04:00
Paul Melnikow
b10a6a4aa7
Refactor [github] token persistence, again ( #1906 )
...
Instead of saving tokens on a timer, save them when they change. Use EventEmitter to keep the components loosely coupled.
This is easier to reason about, much easier to test, and better supports adapting to backends which support atomic operations.
This replaces json-autosave, which was a bit difficult to read and also hard to test, with fsos, the lower-level utility it’s built on.
Ref: #1848
2018-08-18 23:54:53 -04:00
Paul Melnikow
9007658fd0
Refactor and test [github] token persistence ( #1863 )
...
Ref #1848 #1205
2018-08-11 20:13:40 -04:00
Paul Melnikow
c11d97a192
Refactor [github] initialization ( #1861 )
...
This creates a new convenience class which consolidates all the Github initialization. It supports dependency injection and facilitates refactoring the persistence along the lines of #1205 .
Also ref #1848
2018-08-09 07:20:57 -04:00