-
Notifications
You must be signed in to change notification settings - Fork 0
Description
To ensure that Snap projects can be initialized without the need to login or create repositories, the init command should be modified to ask if a Github repository should be linked to or created (same behavior occurs). This question requires that the user is "logged in", and will gate the other git questions regarding the organization and repository name. If the user is logged in the question should default to "yes", if not it should default to "no" (to make implementations process more streamlined).
Additionally, the secretKey and rulesets do not need to be applied if a repository is not created in the implementation organization (at least currently), these steps can be skipped if that org is not selected (hard coded).
Potential new flow of questions:
- choose framework
- choose scaffold
- ask follow up scaffold questions (if they exist)
- ask for siteId (as this is used as a snapfu variable when copying over scaffold)
- ask about using a GitHub repository (if logged in)
a. ask for repository name
b. ask which organization
c. ask for secretKey if org is implementations (attempt to authenticate and set ruleset and secret as usual)