Feature request: When opening assignment list in a browser, URL should also be outputted, similar to gh auth login, in case terminal is headless
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start at the implementation of gh classroom assignments --web and compare its browser-opening behavior with the gh auth login example. Make the assignment-list flow provide the browser URL when opening is unavailable or the terminal is headless, then verify that the URL is still shown alongside the existing assignment output.
Written by the indexing model from the issue text.
Description
E.g.:
$ gh classroom assignments --web
? Select a classroom: Introduction to Game Development
22 Assignments for Introduction to Game Development
Opening in your browser.
Versus:
$ gh auth login
? You're already logged into github.com. Do you want to re-authenticate? Yes
? What is your preferred protocol for Git operations? HTTPS
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: 306B-9B4C
Press Enter to open github.com in your browser...
! Failed opening a web browser at https://github.com/login/device
exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH
Please try entering the URL in your browser manually
- 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 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 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
github/gh-classroom#108 ·
All issues in github/gh-classroom
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bazel-contrib/rules_go#4721 · 2 comments ·
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
bug carvel-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
carvel-dev/kapp-controller#1861 ·
-
area/logging kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100