RedHatQE / newa

New Errata Workflow Automation.
Apache License 2.0
0 stars 4 forks source link

newa user config file #22

Closed kkaarreell closed 4 months ago

kkaarreell commented 5 months ago

Users should be able to define all important variables (like ET URL, Jira token,...) in a config file, for example ~/.newa/config At the same time, each such config option should be also configurable through environment variable having NEWA_ prefix to simplify integration into pipelines.

kkaarreell commented 5 months ago

I tried to approach this in https://github.com/RedHatQE/newa/pull/30

The-Mule commented 4 months ago

@kkaarreell I think we might want to reconsider having jira_project in the newa config. The thing is that project is a kind of component-specific thing. Different teams will want to use their own projects for their components. Hence I believe this particular config fits better in to component configuration (as implemented in #20 ).

kkaarreell commented 4 months ago

i think that it might be handy to be able to specify it at multiple levels (envvar, newa config, jira subcommand option, issue config) with defined (hardcoded) priorities. Also, partially related problem is splitting issue config into multiple files.

kkaarreell commented 4 months ago

https://github.com/RedHatQE/newa/pull/30 got merged.