Rocket.Chat.Apps-cli icon indicating copy to clipboard operation
Rocket.Chat.Apps-cli copied to clipboard

Use cli without interaction

Open sampaiodiego opened this issue 5 years ago • 2 comments
trafficstars

I'd like to use the cli on a CI environment, thus I'd need to use all commands without any kind of interaction.

The basic functionality I'd like to have on CI would be:

  • login
    • I don't think there is a way to set any credentials or how to get an access token from Cloud
  • package
    • Working fine
  • submit
    • Need a way to pass the changelog and skip the "ready to submit" confirmation

These are the issues I've found so far.

sampaiodiego avatar Nov 13 '20 12:11 sampaiodiego

Indeed those might have been overlooked when introducing the latest changes. Unfortunately, we don't have the bandwidth to handle this for now :/

d-gubert avatar Dec 10 '20 22:12 d-gubert

I think the login one actually can be hacked around. Just would need to set the "home" location and create the necessary file from secret in CI.

Hardest part would be the https://github.com/RocketChat/Rocket.Chat.Apps-cli/blob/master/src/misc/cloudAuth.ts#L233 I think encryption key would probably change in ci

geekgonecrazy avatar Dec 10 '20 22:12 geekgonecrazy