pantheon-systems / terminus-build-tools-plugin

Manage multidev environments for a Pantheon site using a GitHub PR workflow.
83 stars 68 forks source link

Fix no-git-force option parameter #453

Open sergiuteaca opened 2 years ago

sergiuteaca commented 2 years ago

The correct name of the parameter is no-git-force but it is sending git-force The parameter name in the $options array in the method parameter list:

$options = [
            'label' => '',
            'clone-content' => false,
            'notify' => '',
            'db-only' => false,
            'message' => '',
            'pr-id' =>  '',
            'no-git-force' =>  false,
        ])

And lower is an example of how it is correclty used

$metadata = $this->pushCodeToPantheon($site_env_id, $multidev, '', $env_label, $options['message'], $options['no-git-force']);