Non-default branches are copies instead of diffs
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Reproduce the assignment creation flow with a template containing main and a one-commit-ahead solution branch, comparing behavior when "Copy the default branch only" is unchecked. Trace the branch-copying entry point and verify that the resulting solution branch retains ancestry so students can view the intended diff.
Written by the indexing model from the issue text.
Description
In my class, I create assignments from repository templates that have a main branch and a solution branch. The solution branch is one commit ahead of the main branch so that students can click on solution's commit to see a diff of the solution. At least, that is how it worked last year.
This year, GitHub Classroom changed such that there's a new option "Copy the default branch only". When this option is unchecked, the solution branch is copied as if it were an entirely new branch (parallel to main). As a result, the diff is lost! This makes it very difficult for students to see the parts of the code that are added/removed/changed in the solution.
(P.S. Is there another (better) approach to providing solutions to assignments?)
- Dominant language
- Go
- Stars
- 126
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/gh-classroom
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
github/gh-classroom#95 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/gh-classroom#21 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
github/gh-classroom#116 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
github/gh-classroom#110 ·
-
Sanitize Team name Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
github/gh-classroom#109 ·
All issues in github/gh-classroom
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
googleapis/librarian#7670 · 2 comments ·