Closed lloydchang closed 1 year ago
Hi, I can take over this issue. Please assign me @lloydchang
Cross-posted at https://codedayorg.slack.com/archives/C05E350DQH4/p1690876446239419?thread_ts=1690867554.654849
@Komal914
I guess your question(?)
is this is available, I am interested in working on it
is probably intended for me as the reporter of that issue, so I’m chiming in to respond.
It’s unavailable in the sense that #411
https://github.com/freeCodeCamp/classroom/pull/411
says:
@lloydchang lloydchang linked a pull request yesterday that will close this issue build(.devcontainer): add gh CLI #412
which means I already implemented it as a pull request for it in #412
https://github.com/freeCodeCamp/classroom/pull/412
Practically, I needed a way to checkout different GitHub pull requests.
gh
CLI is probably the best way to checkout different GitHub pull requests in a Developer Container in GitHub Codespaces.
It’s available in the sense that if you want to iterate through #411 and #412 independently as a learning exercise, you can do that by first, setting up your GitHub Codespaces if you haven’t already done so.
There’s not much problem solving in #411 and #412 from a software engineering perspective.
Please contact @GuillermoFloresV if you have further questions about this. Thanks!
Describe the issue Install
gh
CLI in .devcontainer to checkout GitHub pull requests.For example, to check out GitHub pull request #402
To Reproduce
gh repo set-default
? Which repository should be the default? freeCodeCamp/classroom
gh pr checkout 402
Without
gh
CLI, the above commands will fail with:Expected behavior
Implementation details for a new pull request to close this GitHub issue
Add the snippet from https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt
to the top part of https://github.com/freeCodeCamp/classroom/blob/main/.devcontainer/postCreateCommand.sh