Skip to content

Import Selected Repository #8

@LamboCreeper

Description

@LamboCreeper

Description

The user should be presented with a drop-down list of all their public repositories. Once they select a given repository, a second drop-down list should be populated with a list of the repositories branches (defaulted to the repository's default branch i.e. master/main).

Once the user has selected both the repository and branch, add a database entry for the given data.

This should take place on the repositories/import URL.

Collection: repositories
Document ID: Let Firestore generate this.
Document Data:

{
    created: Date; // The date at which the document is created
    git_url: String; // The git URL for the repository
    branch: String; // The branch selected
    commit: String; // The latest commit on the selected branch at time of import
    user: string; // The user's Firebase ID
    reviewers: string[]; // Empty array for the time being
}

UI Wireframe

image

Population of the branch drop-down should happen on selection of the repository drop-down.
Creation of the database entry should happen on press of "Next".

User Story

As a user
I want to be able to import a repository
So that I can get the code reviewed

Notes

Metadata

Metadata

Assignees

Labels

acceptedThe issue is accepted and PRs are welcomeenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions