Skip to content

Init Github "Repository" Question #165

@korgon

Description

@korgon

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:

  1. choose framework
  2. choose scaffold
  3. ask follow up scaffold questions (if they exist)
  4. ask for siteId (as this is used as a snapfu variable when copying over scaffold)
  5. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions