Skip to content

Commit

Permalink
feat: add QA variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshisnepali committed May 29, 2023
1 parent 027d47f commit b45ce4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Commands/SetVariableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class SetVariableCommand extends Command
{

const SET_DEV_PROTECTED = true;
const SET_QA_PROTECTED = true;
const SET_STAGING_PROTECTED = true;
/**
* The signature of the command.
Expand Down Expand Up @@ -42,10 +43,11 @@ public function handle()

$project_id = $this->ask('Enter Project ID:');

$env = $this->choice('Enter environment scope', ['dev', 'staging', 'production', 'all'], 'all');
$env = $this->choice('Enter environment scope', ['dev', 'qa', 'staging', 'production', 'all'], 'all');

$pre_environment_keys = [
'dev' => 'DEV',
'qa' => 'QA',
'staging' => 'STAGE',
'production' => 'PROD'
];
Expand Down
1 change: 1 addition & 0 deletions config/vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
],

'set_dev_protected' => env('SET_DEV_PROTECTED', false),
'set_qa_protected' => env('SET_QA_PROTECTED', true),
];

0 comments on commit b45ce4a

Please sign in to comment.