Assignment "Copy the default branch only" setting not working

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Domain
backend

Research direction

Start by reproducing the GitHub Classroom assignment flow with a repository containing two branches and the "Copy the default branch only" setting enabled. Compare the starter code repository's branches and default branch with the source repository; done means only the source default branch is copied and remains the default.

Written by the indexing model from the issue text.

Description

I've created 3 assignments over the past week, each from a repository that has two branches. Even though I've checked the "Copy the default branch only" setting, the resultant starter code repository has contained both of the original branches. In one case, "main" was not preserved as the default branch. This seems like a pretty big problem if, for example, one of the branches is a solution branch.

I've tried going to the starter code repository and deleting the extra branches, before distributing the assignment, and that seems to be a workaround for now. Needless to say, it would be nice not to need that extra step 🙂

Edit: I got here by googling "github classroom issues" but I now wonder if that was a mistake: where is the correct place to go to report issues with the github classroom website, not necessarily the cli tool?

Dominant language
Go
Stars
126
Forks
21
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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/gh-classroom

All issues in github/gh-classroom

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.