adobe / adobe/aio-lib-ims-oauth

for cli login: use @npmcli/ci-detect to detect whether in a CI environment

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Module: https://www.npmjs.com/package/@npmcli/ci-detect

For ims-cli context:

1. If we are in a CI environment, we print out the CI environment, and do not launch the browser.
2. Print out a warning that various environment variables (which correspond to config values) are not available as the access token needed for cli use in a CI env.

Contributor guide

Open the contributing guide

Research direction

Start by locating the ims-cli login flow and reading how it currently launches the browser. Review @npmcli/ci-detect and identify the environment variables corresponding to the access-token configuration. Done means CI environments report the detected CI provider, skip browser launch, and warn that those variables are unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.