Enable creating mirrors with a different base branch

Open
#448 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Start in the private-mirrors UI's mirror-creation flow and review how the source project's default branch is currently selected. Follow the branch data made available by dependency #443, then add the requested branch choice with the default branch selected initially. Done means users can choose any current source branch and create a mirror based on it.

Written by the indexing model from the issue text.

Description

enhancement
Is your feature request related to a problem?

Some projects make use of multiple branches for different purposes (ex. gh-pages for documentation) but currently private-mirrors only supports contributing to the default branch of a project.

Describe the solution you'd like

During mirror creation the private-mirrors UI should present a dropdown to allow users to select the branch that they would like to base the mirror on from among branches present on the source project. The default branch should be automatically selected to avoid adding additional selections for the most common case.

Describe alternatives you've considered

It is possible to create a fork and change it's default branch to the desired branch so that mirrors created from that fork will use the desired branch but that requires creating a new fork for each desired base branch.

Additional context

This issue depends on #443 to ensure that mirrors can be created based on and up to date with the latest branches present on the source project.

Dominant language
TypeScript
Stars
203
Forks
42
Avg merge
1h 15m
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github-community-projects/private-mirrors

All issues in github-community-projects/private-mirrors

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.