klelostec / drupguard

GNU General Public License v3.0
2 stars 3 forks source link

Autoconfig #3

Open obriat opened 3 years ago

obriat commented 3 years ago

Project fields should be preset using data from git project: name, machine name, branch (using default one), drupal directory (using web-root from composer.json, or .htaccess for D7)

klelostec commented 3 years ago

Actually we get branches from remote without checkout project locally. Preset drupal directory is difficult because it needs to checkout project locally and run composer to download packages which take times. Project creation need to be done as quick as possible. So I don't recommand to do this.

I don't know how to get repo's human readable name from local git commands. Any idea ? We also need a way to get it from every existing git servers (gitlab, github, butbucket etc.) !

What I've already done is :