feat(github-cli): add github-cli auth-on-setup option#1606
Conversation
c219e7c to
2d610ba
Compare
2d610ba to
fb8256f
Compare
15585e9 to
b44f825
Compare
|
Hi @Kaniska244 any chance to have this PR merged? Thank you :) |
b44f825 to
f1345db
Compare
f8549e5 to
4e3dffb
Compare
|
Hi @Kaniska244, here is a kindly reminder, hoping having this PR merged one day :) Thanks |
|
Hello @neilime, apologies this is my fault as I've been meaning to look at this but haven't had a chance. I'll try to review this within the week. |
|
@neilime Would you be able to break this PR up, as I'm struggling to review it given the size and number of files touched? |
6504080 to
9c20ae6
Compare
9c20ae6 to
ad1b835
Compare
|
@abdurriq done: 6 atomic commits (atomic as much as I can) with their own purpose |
| { | ||
| "id": "github-cli", | ||
| "version": "1.1.0", | ||
| "version": "1.3.0", |
|
I noticed some inconsistencies in double-quotes around params and the logic between |
Not a strict 1:1 copy on purpose: the top-level script now only orchestrates the install/auth/extensions scopes, so the previous logic was split into dedicated scripts. Your concern about drift was valid though, and I found one real inconsistency in the installExtensionsFromGit path and fixed it. Aside from that, the remaining differences are mostly cleanup, plus one small fallback fix in the GitHub CLI installer. |
…ization Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1ac67b7 to
b909ce6
Compare
Summary
Add an optional
authOnSetupflow to authenticateghafter container startup, and make GitHub CLI extension installation work correctly with runtime auth or a git-based fallback.no breaking changes: the original behavior is the default one.
Changes
authOnSetupandinstallExtensionsFromGitfeature optionsGH_TOKENorGITHUB_TOKENBattle tested with automated tests and in real-world devcontainer